]> 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)
commit0fe5d024315d59fad77e3d388105e27848ed3830
tree2adc11ba6eed981f46dafb5aabb00a1e68425f07
parentac796f21c6acfc6eb00dee18c214b67a260555c8
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