mirror of
https://github.com/torvalds/linux.git
synced 2026-01-24 23:16:46 +00:00
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: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Bjorn 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
This commit is contained in:
committed by
Bjorn Helgaas
parent
121d3e9e4b
commit
1d8a0506f6
@@ -2513,8 +2513,8 @@ cleanup:
|
||||
pci_claim_resource(dev, i);
|
||||
pci_setup_bridge(dev->subordinate);
|
||||
}
|
||||
free_list(&saved);
|
||||
up_read(&pci_bus_sem);
|
||||
free_list(&saved);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user