Rafael J. Wysocki b1296cc48b freezer: fix racy usage of try_to_freeze in kswapd
Currently we can miss freeze_process()->signal_wake_up() in kswapd() if it
happens between try_to_freeze() and prepare_to_wait().  To prevent this
from happening we should check freezing(current) before calling schedule().

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-07 12:12:59 -07:00
..
2007-03-27 08:52:47 +02:00
2007-05-07 12:12:52 -07:00
2006-12-22 08:55:49 -08:00
2007-05-07 12:12:54 -07:00
2007-05-07 12:12:54 -07:00
2007-05-07 12:12:54 -07:00
2007-01-11 18:18:20 -08:00
2007-02-15 09:57:03 -08:00
2006-12-07 08:39:22 -08:00
2007-05-07 12:12:55 -07:00
2007-05-07 12:12:54 -07:00
2007-05-07 12:12:52 -07:00