Commit 1d8a0506 authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by Bjorn Helgaas
Browse files

PCI: Free saved list without holding pci_bus_sem



Freeing the saved list does not require holding pci_bus_sem, so the
critical section can be made shorter.

Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Tested-by: Alex Bennée <alex.bennee@linaro.org> # AVA, AMD GPU
Link: https://patch.msgid.link/20251113162628.5946-6-ilpo.jarvinen@linux.intel.com
parent 121d3e9e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2513,8 +2513,8 @@ int pbus_reassign_bridge_resources(struct pci_bus *bus, struct resource *res)
		pci_claim_resource(dev, i);
		pci_setup_bridge(dev->subordinate);
	}
	free_list(&saved);
	up_read(&pci_bus_sem);
	free_list(&saved);

	return ret;
}