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)
commit0f62d941acf9ac3b6025692ce649b1f282b89e7f
tree15812104613cdf5f30ea1c14891114d41fc2094b
parentb5f687f97d1e112493fe0447a1fb09fbd93c334b
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