diff options
author | Konstantin Khlebnikov <khlebnikov@openvz.org> | 2012-05-10 14:20:04 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-05-18 13:07:40 +0200 |
commit | 1c2927f18576d65631d8e0ddd19e1d023183222e (patch) | |
tree | f085b43bde0e8f547eabcd51bdfcbff5ab332c2a /kernel/sched | |
parent | sched: Remove stale power aware scheduling remnants and dysfunctional knobs (diff) | |
download | linux-1c2927f18576d65631d8e0ddd19e1d023183222e.tar.xz linux-1c2927f18576d65631d8e0ddd19e1d023183222e.zip |
sched: Taint kernel with TAINT_WARN after sleep-in-atomic bug
Usually sleep-in-atomic bugs are followed by dozens other warnings.
This patch should help to figure out original source of problem.
Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20120510122004.4873.12726.stgit@zurg
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 24ca677b5457..ab9745f7e115 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -3138,6 +3138,7 @@ static noinline void __schedule_bug(struct task_struct *prev) if (irqs_disabled()) print_irqtrace_events(prev); dump_stack(); + add_taint(TAINT_WARN); } /* |