]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: Use lockdep_assert_held(pci_bus_sem) to verify lock is held
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 16 Jan 2026 12:57:40 +0000 (14:57 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 6 Feb 2026 22:53:35 +0000 (16:53 -0600)
commit183c291caa34cc1e721a571058a3f972c5b35122
tree0823ece15aa7544e6d34cbd5fc4aadf6f5bacba1
parent1f5e57c622b4dc9b8e7d291d560138d92cfbe5bf
PCI: Use lockdep_assert_held(pci_bus_sem) to verify lock is held

The function comment for pci_bus_max_d3cold_delay() declares pci_bus_sem
must be held while calling the function which can be automatically checked.
Add lockdep_assert_held(pci_bus_sem) to confirm pci_bus_sem is held.

Also mark the comment line with Context prefix.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260116125742.1890-2-ilpo.jarvinen@linux.intel.com
drivers/pci/pci.c