summaryrefslogtreecommitdiffstats
path: root/kernel/sched
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2014-10-29 17:08:45 +0100
committerIngo Molnar <mingo@kernel.org>2014-11-04 07:17:49 +0100
commite7097e8bd0074b465f9c78dcff25cd3f82382581 (patch)
tree0fcab1f4e6eb01a51e8008a0f5a0977a4c5b92e9 /kernel/sched
parentff960a731788a7408b6f66ec4fd772ff18833211 (diff)
downloadlinux-e7097e8bd0074b465f9c78dcff25cd3f82382581.tar.bz2
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>
Diffstat (limited to 'kernel/sched')
-rw-r--r--kernel/sched/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index b9f78f12ac22..0cd34e68680c 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -7301,7 +7301,7 @@ void __might_sleep(const char *file, int line, int preempt_offset)
* since we will exit with TASK_RUNNING make sure we enter with it,
* otherwise we will destroy state.
*/
- if (WARN(current->state != TASK_RUNNING,
+ if (WARN_ONCE(current->state != TASK_RUNNING,
"do not call blocking ops when !TASK_RUNNING; "
"state=%lx set at [<%p>] %pS\n",
current->state,