CHROMIUM: scheduler: panic if schedulin while atomic
authorSameer Nanda <snanda@chromium.org>
Tue, 8 May 2012 23:07:31 +0000 (23:07 +0000)
committerOlof Johansson <olof@lixom.net>
Fri, 1 Jun 2012 06:55:11 +0000 (23:55 -0700)
commit9e897183d50b3cc0d85aaee2cf526e12c88be95e
treeb2a1ff20611f9f9873af5845cd09602789f38f31
parent46b9cb0cc80c1ddaceb7d9026908948362574009
CHROMIUM: scheduler: panic if schedulin while atomic

When the schduling while atomic condition is hit, currently only a
printk and dump_stack happens but the kernel continues to run.  We've
run into issues where we think this causes a hang during shutdown
eventually.

Now doing a kernel panic instead by calling BUG().  This should prevent
hangs at shutdown from happening as well as providing us stack traces
that might help us root cause the real issue.

Signed-off-by: Sameer Nanda <snanda@chromium.org>
BUG=chromium-os:29599
TEST=We don't have a good way of repro'ing the hang on shutdown so the
testing is limited to kernel building fine.

Change-Id: I52084abf64a133a00f20e2eeaeb921820755e252
Reviewed-on: https://gerrit.chromium.org/gerrit/21534
Reviewed-by: Olof Johansson <olofj@chromium.org>
Commit-Ready: Sameer Nanda <snanda@chromium.org>
Tested-by: Sameer Nanda <snanda@chromium.org>
kernel/sched/core.c