[PATCH] Fix scheduling-while-atomic problem in console_cpu_notify()

Paul E. McKenney
2012-10-16T00:31:36Z

The console_cpu_notify( function runs with interrupts disabled in
the CPU_DEAD case. It therefore cannot block, for example, as will
happen when it calls console_lock(). Therefore, remove the CPU_DEAD
leg of the switch statement to avoid this problem.

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>

diff --git a/kernel/printk.c b/kernel/printk.c
index 66a2ea3..8e23a14 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -1889,7 +1889,6 @@ static int __cpuinit console_cpu_notify(struct notifier_block *self,
{
switch (action) {