genirq/msi: Add mutex for MSI list protection
authorThomas Gleixner <tglx@linutronix.de>
Mon, 6 Dec 2021 22:51:05 +0000 (23:51 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Dec 2021 21:22:17 +0000 (22:22 +0100)
commitb5f687f97d1e112493fe0447a1fb09fbd93c334b
tree9893ade2ba9d2f36831f8f9b1f58483c6bf2e388
parent125282cd4f33ecd53a24ae4807409da0e5e90fd4
genirq/msi: Add mutex for MSI list protection

For upcoming runtime extensions of MSI-X interrupts it's required to
protect the MSI descriptor list. Add a mutex to struct msi_device_data and
provide lock/unlock functions.

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