diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2007-05-06 23:50:48 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-07 21:12:59 +0200 |
commit | b1296cc48b39355241470ef934a5e2270e3f23bd (patch) | |
tree | cfaf24de442b9ce19414f67106461f7c4829a1a7 /Documentation | |
parent | swsusp: use rbtree for tracking allocated swap (diff) | |
download | linux-b1296cc48b39355241470ef934a5e2270e3f23bd.tar.xz linux-b1296cc48b39355241470ef934a5e2270e3f23bd.zip |
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>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions