]> git.baikalelectronics.ru Git - kernel.git/commit
genirq/msi: Make interrupt allocation less convoluted
authorThomas Gleixner <tglx@linutronix.de>
Mon, 6 Dec 2021 22:51:44 +0000 (23:51 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Dec 2021 21:22:20 +0000 (22:22 +0100)
commit70b31f2cd04c583666c517ef4408e72e511445ee
tree684fcb9e6e7f19477f0690d7831c82d087464eb0
parent835df8202b993c6b83e6dab2820141bca1548aa0
genirq/msi: Make interrupt allocation less convoluted

There is no real reason to do several loops over the MSI descriptors
instead of just doing one loop. In case of an error everything is undone
anyway so it does not matter whether it's a partial or a full rollback.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Michael Kelley <mikelley@microsoft.com>
Tested-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20211206210749.010234767@linutronix.de
.clang-format
include/linux/msi.h
kernel/irq/msi.c