Re: [PATCH 2/2] ACPI / hotplug: Remove containers synchronously

2013-08-28 Thread Gu Zheng
On 08/28/2013 09:51 PM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The current protocol for handling hot remove of containers is very > fragile and causes acpi_eject_store() to acquire acpi_scan_lock > which may deadlock with the removal of the device that it is called > for (the rea

Re: [PATCH 2/2] ACPI / hotplug: Remove containers synchronously

2013-08-28 Thread Greg Kroah-Hartman
On Wed, Aug 28, 2013 at 03:51:41PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The current protocol for handling hot remove of containers is very > fragile and causes acpi_eject_store() to acquire acpi_scan_lock > which may deadlock with the removal of the device that it is call

[PATCH 2/2] ACPI / hotplug: Remove containers synchronously

2013-08-28 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The current protocol for handling hot remove of containers is very fragile and causes acpi_eject_store() to acquire acpi_scan_lock which may deadlock with the removal of the device that it is called for (the reason is that device sysfs attributes cannot be removed while th