]> git.baikalelectronics.ru Git - kernel.git/commit
printk: Fix scheduling-while-atomic problem in console_cpu_notify()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 16 Oct 2012 04:35:59 +0000 (21:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Oct 2012 01:17:44 +0000 (18:17 -0700)
commit6db4931f51bb22f6dfcefc34a3e502b07921d680
treec7b6a9334bf9f56c361537c8273a12f4b0549e0b
parentf6828a070c4cc8c72ca47415e39bac89f9eb48ce
printk: Fix scheduling-while-atomic problem in console_cpu_notify()

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

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/printk.c