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-05-07 12:12:52 -07: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-05-07 12:12:55 -07:00
2007-05-07 12:12:54 -07:00
2007-05-07 12:12:52 -07:00