Oleg Nesterov
85f4186af9
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>
2007-05-09 12:30:53 -07:00
..
2007-05-09 12:30:48 -07:00
2007-05-09 12:30:48 -07:00
2007-05-09 12:30:50 -07:00
2007-05-08 11:15:09 -07:00
2007-02-17 21:30:09 -05:00
2007-03-14 15:27:48 -07:00
2007-05-09 12:30:49 -07:00
2007-05-09 12:30:51 -07:00
2007-05-09 12:30:49 -07:00
2007-05-07 12:12:55 -07:00
2007-05-08 11:15:04 -07:00
2007-05-08 11:15:07 -07:00
2007-05-08 11:15:07 -07:00
2007-05-08 11:15:03 -07:00
2007-05-08 11:15:15 -07:00
2007-05-08 11:15:13 -07:00
2007-05-08 11:15:09 -07:00
2007-05-08 11:15:07 -07:00
2007-05-08 11:15:07 -07:00
2007-05-08 11:15:19 -07:00
2007-05-02 18:57:59 -07:00
2007-02-14 08:09:54 -08:00
2007-05-08 11:15:13 -07:00
2007-05-08 11:15:04 -07:00
2007-05-08 11:15:08 -07:00
2007-02-14 08:09:54 -08:00
2007-05-08 11:15:00 -07:00
2007-05-08 11:15:08 -07:00
2007-05-08 11:15:00 -07:00
2007-05-08 11:15:11 -07:00
2007-05-08 11:15:07 -07:00
2007-05-08 11:15:07 -07:00
2007-05-08 11:15:17 -07:00
2007-05-09 12:30:51 -07:00
2007-04-28 14:15:59 -04:00
2007-02-16 08:13:58 -08:00
2007-05-08 11:15:09 -07:00
2007-05-09 12:30:51 -07:00
2007-05-09 12:30:49 -07:00
2007-02-16 08:13:59 -08:00
2007-05-08 11:15:06 -07:00
2007-05-08 11:15:00 -07:00
2007-05-09 12:30:51 -07:00
2007-05-08 11:15:02 -07:00
2007-05-07 12:12:55 -07:00
2007-05-08 11:15:07 -07:00
2007-05-08 11:15:11 -07:00
2007-02-16 08:14:00 -08:00
2007-05-08 11:15:07 -07:00
2007-02-14 08:09:59 -08:00
2007-05-08 11:15:00 -07:00
2007-05-09 12:30:53 -07:00