PCI / ACPI: hold acpi_scan_lock during root bus hotplug
authorYinghai Lu <yinghai@kernel.org>
Mon, 11 Mar 2013 05:05:16 +0000 (05:05 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 26 Mar 2013 23:06:07 +0000 (00:06 +0100)
commitb8b6611048b7b57b86fbdc9153649ad4dc52135f
tree2adc11ba6eed981f46dafb5aabb00a1e68425f07
parentaaf9d93be71c68558c25b4052ac979ee6b7eb809
PCI / ACPI: hold acpi_scan_lock during root bus hotplug

During merging the PCI tree with the PM/ACPI tree, Linus noticed
that we don't use the same lock using patten about ACPI PCI root as
acpiphp.

Here apply the same locking patten, and we need to execute
acpi_bus_hot_remove_device() via acpi_os_hotplug_execute()
as it also holds acpi_scan_lock.

[rjw: Changelog]
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
No-objection-from: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pci_root.c