]> Gentwo Git Trees - linux/.git/commit
PCI: Add lockdep assertion in pci_stop_and_remove_bus_device()
authorNiklas Schnelle <schnelle@linux.ibm.com>
Tue, 26 Aug 2025 08:52:09 +0000 (10:52 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 26 Sep 2025 21:01:17 +0000 (16:01 -0500)
commit60e7b5aa85712f7f2fc75b2e9d28444de88ab47f
tree807b7d3a7d97d934af13f69b77f0c8370f6c0483
parent05703271c3cdcc0f2a8cf6ebdc45892b8ca83520
PCI: Add lockdep assertion in pci_stop_and_remove_bus_device()

Removing a PCI devices requires holding pci_rescan_remove_lock. Prompted by
this being missed in sriov_disable() and going unnoticed since its
inception, add a lockdep assert so this doesn't get missed again in the
future.

Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Reviewed-by: Julian Ruess <julianr@linux.ibm.com>
Link: https://patch.msgid.link/20250826-pci_fix_sriov_disable-v1-2-2d0bc938f2a3@linux.ibm.com
drivers/pci/pci.h
drivers/pci/probe.c
drivers/pci/remove.c