All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched: remove false-positive warning from wake_up_process()
@ 2015-12-01  1:34 Sasha Levin
  2015-12-01  1:47 ` Linus Torvalds
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Sasha Levin @ 2015-12-01  1:34 UTC (permalink / raw)
  To: mingo, peterz; +Cc: linux-kernel, oleg, torvalds, Sasha Levin

Futex can have a spurious wake up before we actually wake it up on our own,
which will trigger this warning if the task is still stopped.

Fixes: 9067ac85d533651b98c2ff903182a20cbb361fcb ("wake_up_process() should be never used to wakeup a TASK_STOPPED/TRACED task")
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
---
 kernel/sched/core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 4d568ac..fc8c987 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -2039,7 +2039,6 @@ out:
  */
 int wake_up_process(struct task_struct *p)
 {
-	WARN_ON(task_is_stopped_or_traced(p));
 	return try_to_wake_up(p, TASK_NORMAL, 0);
 }
 EXPORT_SYMBOL(wake_up_process);
-- 
2.5.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-12-04 11:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-01  1:34 [PATCH] sched: remove false-positive warning from wake_up_process() Sasha Levin
2015-12-01  1:47 ` Linus Torvalds
2015-12-01  2:48   ` Rik van Riel
2015-12-01  3:14     ` Linus Torvalds
2015-12-03 12:36 ` Peter Zijlstra
2015-12-03 18:18   ` Linus Torvalds
2015-12-04 11:52 ` [tip:locking/core] sched/core: Remove " tip-bot for Sasha Levin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.