Commit 119d6f6a authored by Sasha Levin's avatar Sasha Levin Committed by Ingo Molnar
Browse files

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: default avatarSasha Levin <>
Signed-off-by: default avatarPeter Zijlstra (Intel) <>
Acked-by: default avatarLinus Torvalds <>
Cc: Mike Galbraith <>
Cc: Peter Zijlstra <>
Cc: Thomas Gleixner <>
Fixes: 9067ac85 ("wake_up_process() should be never used to wakeup a TASK_STOPPED/TRACED task")

Signed-off-by: default avatarIngo Molnar <>
parent 68985633
......@@ -2039,7 +2039,6 @@ out:
int wake_up_process(struct task_struct *p)
return try_to_wake_up(p, TASK_NORMAL, 0);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment