]> www.infradead.org Git - users/dwmw2/linux.git/commit
PCI: Move __pci_walk_bus() mutex to where we need it
authorKeith Busch <kbusch@kernel.org>
Tue, 22 Oct 2024 22:48:49 +0000 (15:48 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 11 Nov 2024 19:06:02 +0000 (13:06 -0600)
commit4d6dcd6c2fa3a80898651d323c150e5ebc03881d
treea08d659a8666bcab1f678c68715f60b5e0426933
parente3f30d563a388220a7c4e3b9a7b52ac0b0324b26
PCI: Move __pci_walk_bus() mutex to where we need it

Simplify __pci_walk_bus() by moving the pci_bus_sem mutex into
pci_walk_bus(), the only place it is needed, and removing the parameter
that told __pci_walk_bus() whether to acquire the mutex.

Link: https://lore.kernel.org/r/20241022224851.340648-4-kbusch@meta.com
Signed-off-by: Keith Busch <kbusch@kernel.org>
[bhelgaas: commit log]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/pci/bus.c