Re: [PATCH] PM: Acquire device locks on suspend (rev. 3)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 11 Jan 2008, Rafael J. Wysocki wrote:

> Hi,
> 
> The patch below is intended as a replacement for
> gregkh-driver-pm-acquire-device-locks-prior-to-suspending.patch that deadlocked
> suspend and hibernation on some systems.  The present patch contains some
> safeguards against deadlocks in the relevant cases and a mechanism to print
> warnings if a deadlock is probable.
> 
> Greetings,
> Rafael
> 
> ---
> From: Rafael J. Wysocki <rjw@xxxxxxx>, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
> 
> This patch reorganizes the way suspend and resume notifications are
> sent to drivers.  The major changes are that now the PM core acquires
> every device semaphore before calling the methods, and calls to
> device_add() during suspends will fail, while calls to device_del()
> during suspends will block.
> 
> It also provides a way to safely remove a suspended device with the
> help of the PM core, by using the device_pm_schedule_removal() callback
> introduced specifically for this purpose, and updates two drivers (msr
> and cpuid) that need to use it.
> 
> Signed-off-by: Rafael J. Wysocki <rjw@xxxxxxx>

Signed-off-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>

_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux