sched/core: Remove false-positive warning from wake_up_process()
authorSasha Levin <[email protected]>
Tue, 1 Dec 2015 01:34:20 +0000 (20:34 -0500)
committerIngo Molnar <[email protected]>
Fri, 4 Dec 2015 09:10:16 +0000 (10:10 +0100)
commit119d6f6a3be8b424b200dcee56e74484d5445f7e
treec200048bea0141e0767d2b0928869de15dcfc590
parent68985633bccb6066bf1803e316fbc6c1f5b796d6
sched/core: Remove false-positive warning from wake_up_process()

Because wakeups can (fundamentally) be late, a task might not be in
the expected state. Therefore testing against a task's state is racy,
and can yield false positives.

Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Linus Torvalds <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Fixes: 9067ac85d533 ("wake_up_process() should be never used to wakeup a TASK_STOPPED/TRACED task")
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/sched/core.c