diff options
| author | Oleg Nesterov <[email protected]> | 2007-05-23 13:57:27 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-05-23 20:14:11 -0700 |
| commit | a076e4bca2fdabb9e45d86722cc72c0944da5f94 (patch) | |
| tree | b11684f4b39dabb84584773f1b7811b5207e7f01 /include/linux | |
| parent | 49b12d4f5e274517b8bc032d507abf31cc2f4150 (diff) | |
freezer: fix kthread_create vs freezer theoretical race
kthread() sleeps in TASK_INTERRUPTIBLE state waiting for the first wakeup. In
theory, this wakeup may come from freeze_process()->signal_wake_up(), so the
task can disappear even before kthread_create() sets its ->comm.
Change kthread() to use TASK_UNINTERRUPTIBLE.
[[email protected]: s/BUG_ON/WARN_ON+recover]
Signed-off-by: Oleg Nesterov <[email protected]>
Acked-by: "Eric W. Biederman" <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Cc: Gautham R Shenoy <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions