Skip to content

Commit

Permalink
ACPI / hotplug / PCI: Scan root bus under the PCI rescan-remove lock
Browse files Browse the repository at this point in the history
Since acpiphp_check_bridge() called by acpiphp_check_host_bridge()
does things that require PCI rescan-remove locking around it,
make acpiphp_check_host_bridge() use that locking.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
  • Loading branch information
Rafael J. Wysocki committed Feb 3, 2014
1 parent f41b326 commit d42f5da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/pci/hotplug/acpiphp_glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,11 @@ void acpiphp_check_host_bridge(acpi_handle handle)

bridge = acpiphp_handle_to_bridge(handle);
if (bridge) {
pci_lock_rescan_remove();

acpiphp_check_bridge(bridge);

pci_unlock_rescan_remove();
put_bridge(bridge);
}
}
Expand Down

0 comments on commit d42f5da

Please sign in to comment.