]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit33cae28862378bb91afa5b08080e40a63ab4fe1e
tree9893ade2ba9d2f36831f8f9b1f58483c6bf2e388
parent2bcad8244e5361d219428e6adb4cd508702e13a7
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