Skip to content

Commit 119d6f6

Browse files
sashaleviningomolnar
authored andcommitted
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: 9067ac8 ("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]>
1 parent 6898563 commit 119d6f6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

kernel/sched/core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2039,7 +2039,6 @@ static void try_to_wake_up_local(struct task_struct *p)
20392039
*/
20402040
int wake_up_process(struct task_struct *p)
20412041
{
2042-
WARN_ON(task_is_stopped_or_traced(p));
20432042
return try_to_wake_up(p, TASK_NORMAL, 0);
20442043
}
20452044
EXPORT_SYMBOL(wake_up_process);

0 commit comments

Comments
 (0)