]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI/MSI: Switch msi_capability_init() to guard(msi_desc_lock)
authorThomas Gleixner <tglx@linutronix.de>
Wed, 19 Mar 2025 10:56:53 +0000 (11:56 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 9 Apr 2025 18:47:30 +0000 (20:47 +0200)
commitf11cc2af8f4b3d5e81dd9b8fb1a9185a6ca6e7db
tree6fa5c90f5514bd8203f0b6222ad88a6aaf4397fe
parent5c0ba4f9d25eb35a8ef882115c9f9c2084acc4e7
PCI/MSI: Switch msi_capability_init() to guard(msi_desc_lock)

Split the lock protected functionality of msi_capability_init() out into a
helper function and use guard(msi_desc_lock) to replace the lock/unlock
pair.

No functional change intended.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/all/20250319105506.504992208@linutronix.de
drivers/pci/msi/msi.c