Re: [PATCH] ACPI / PM: Hold acpi_scan_lock over system PM transitions

2013-08-20 Thread Toshi Kani
On Tue, 2013-08-20 at 01:47 +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Bad things happen if ACPI hotplug events are handled during system > PM transitions, especially if devices are removed as a result. > To prevent those bad things from happening, acquire acpi_scan_lock > when

Re: [PATCH] ACPI / PM: Hold acpi_scan_lock over system PM transitions

2013-08-20 Thread Rafael J. Wysocki
On Tuesday, August 20, 2013 02:08:33 PM Mika Westerberg wrote: > On Tue, Aug 20, 2013 at 01:47:57AM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Bad things happen if ACPI hotplug events are handled during system > > PM transitions, especially if devices are removed as a res

Re: [PATCH] ACPI / PM: Hold acpi_scan_lock over system PM transitions

2013-08-20 Thread Mika Westerberg
On Tue, Aug 20, 2013 at 01:47:57AM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Bad things happen if ACPI hotplug events are handled during system > PM transitions, especially if devices are removed as a result. > To prevent those bad things from happening, acquire acpi_scan_lock

[PATCH] ACPI / PM: Hold acpi_scan_lock over system PM transitions

2013-08-19 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Bad things happen if ACPI hotplug events are handled during system PM transitions, especially if devices are removed as a result. To prevent those bad things from happening, acquire acpi_scan_lock when a transition is started and release it when that transition is complete