Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c2927f1 authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov Committed by Ingo Molnar
Browse files

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: default avatarKonstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20120510122004.4873.12726.stgit@zurg


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 8e7fbcbc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
}

/*