kernel-aes67/kernel/power
Rafael J. Wysocki 3df494a32b [PATCH] PM: Fix freezing of stopped tasks
Currently, if a task is stopped (ie.  it's in the TASK_STOPPED state), it
is considered by the freezer as unfreezeable.  However, there may be a race
between the freezer and the delivery of the continuation signal to the task
resulting in the task running after we have finished freezing the other
tasks.  This, in turn, may lead to undesirable effects up to and including
data corruption.

To prevent this from happening we first need to make the freezer consider
stopped tasks as freezeable.  For this purpose we need to make freezeable()
stop returning 0 for these tasks and we need to force them to enter the
refrigerator.  However, if there's no continuation signal in the meantime,
the stopped tasks should remain stopped after all processes have been
thawed, so we need to send an additional SIGSTOP to each of them before
waking it up.

Also, a stopped task that has just been woken up should first check if
there's a freezing request for it and go to the refrigerator if that's the
case.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-12-13 09:05:49 -08:00
..
console.c [PATCH] Fix build failure in recent pm_prepare_* changes. 2006-02-07 16:12:33 -08:00
disk.c [PATCH] swsusp: kill write-only variable 2006-12-07 08:39:29 -08:00
Kconfig [PATCH] swsusp: Support i386 systems with PAE or without PSE 2006-12-07 08:39:28 -08:00
main.c [PATCH] Export pm_suspend for the shared APM emulation 2006-12-07 08:39:32 -08:00
Makefile [PATCH] Disable CPU hotplug during suspend 2006-09-26 08:48:59 -07:00
pm.c [PATCH] remove kernel/power/pm.c:pm_unregister_all() 2006-07-12 16:09:08 -07:00
power.h [PATCH] convert pm_sem to a mutex 2006-12-07 08:39:28 -08:00
poweroff.c WorkStruct: Pass the work_struct pointer instead of context data 2006-11-22 14:55:48 +00:00
process.c [PATCH] PM: Fix freezing of stopped tasks 2006-12-13 09:05:49 -08:00
snapshot.c [PATCH] swsusp: Fix labels 2006-12-07 08:39:28 -08:00
swap.c [PATCH] swsusp: Fix labels 2006-12-07 08:39:28 -08:00
swsusp.c [PATCH] swsusp: Fix labels 2006-12-07 08:39:28 -08:00
user.c [PATCH] struct seq_operations and struct file_operations constification 2006-12-07 08:39:46 -08:00