]> git.baikalelectronics.ru Git - kernel.git/commit
genirq/msi: Provide msi_domain_alloc/free_irqs_descs_locked()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 6 Dec 2021 22:51:07 +0000 (23:51 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Dec 2021 21:22:17 +0000 (22:22 +0100)
commit2bf241b9aec05f2003d0985c49c7f94c6cbe2503
tree15812104613cdf5f30ea1c14891114d41fc2094b
parent30b562aa6175d106f4739fa0965bc1756f9ea096
genirq/msi: Provide msi_domain_alloc/free_irqs_descs_locked()

Usage sites which do allocations of the MSI descriptors before invoking
msi_domain_alloc_irqs() require to lock the MSI decriptors accross the
operation.

Provide entry points which can be called with the MSI mutex held and lock
the mutex in the existing entry points.

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/20211206210747.765371053@linutronix.de
include/linux/msi.h
kernel/irq/msi.c