sched: Use WARN_ONCE for the might_sleep() TASK_RUNNING test
authorPeter Zijlstra <peterz@infradead.org>
Wed, 29 Oct 2014 16:08:45 +0000 (17:08 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Nov 2014 06:17:49 +0000 (07:17 +0100)
commite7097e8bd0074b465f9c78dcff25cd3f82382581
tree0fcab1f4e6eb01a51e8008a0f5a0977a4c5b92e9
parentff960a731788a7408b6f66ec4fd772ff18833211
sched: Use WARN_ONCE for the might_sleep() TASK_RUNNING test

In some cases this can trigger a true flood of output.

Requested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c