summaryrefslogtreecommitdiffstats
path: root/kernel/signal.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2007-05-09 11:34:20 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-09 21:30:53 +0200
commit85f4186af944c1240c84934a9ab578743df2d69b (patch)
tree743d6a619538cda98495aaaac67a86246d3007e4 /kernel/signal.c
parentworker_thread: don't play with signals (diff)
downloadlinux-85f4186af944c1240c84934a9ab578743df2d69b.tar.xz
linux-85f4186af944c1240c84934a9ab578743df2d69b.zip
worker_thread: fix racy try_to_freeze() usage
worker_thread() can miss freeze_process()->signal_wake_up() if it happens between try_to_freeze() and prepare_to_wait(). We should check freezing() before entering schedule(). This race was introduced by me in [PATCH 1/1] workqueue: don't migrate pending works from the dead CPU Looks like mm/vmscan.c:kswapd() has the same race. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/signal.c')
0 files changed, 0 insertions, 0 deletions