]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54bacb9fd5e53c909988bb710f5bd80ae2508ded
tree2adc11ba6eed981f46dafb5aabb00a1e68425f07
parent69e8ee5bfbc1939f0d9abb767d245fb9417559c4
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