[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.0801111006410.4263-100000@iolanthe.rowland.org>
Date: Fri, 11 Jan 2008 10:07:38 -0500 (EST)
From: Alan Stern <stern@...land.harvard.edu>
To: "Rafael J. Wysocki" <rjw@...k.pl>
cc: Greg KH <gregkh@...e.de>, Len Brown <lenb@...nel.org>,
Ingo Molnar <mingo@...e.hu>,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>,
pm list <linux-pm@...ts.linux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>,
Johannes Berg <johannes@...solutions.net>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] PM: Acquire device locks on suspend (rev. 3)
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@...k.pl>, Alan Stern <stern@...land.harvard.edu>
>
> 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@...k.pl>
Signed-off-by: Alan Stern <stern@...land.harvard.edu>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists