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

2012-10-15 Thread Srivatsa S. Bhat
On 10/16/2012 10:05 AM, Paul E. McKenney wrote: > On Mon, Oct 15, 2012 at 05:31:28PM -0700, Paul E. McKenney wrote: >> 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(). Th

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

2012-10-15 Thread Paul E. McKenney
On Mon, Oct 15, 2012 at 05:31:28PM -0700, Paul E. McKenney wrote: > 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 stat

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

2012-10-15 Thread Paul E. McKenney
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 diff --git