]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] iSeries: don't printk with HV spinlock held
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 12 Dec 2007 03:58:12 +0000 (14:58 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 14 Dec 2007 04:50:46 +0000 (15:50 +1100)
commitb1742be0c2be98bf03da67e5acc9bc9c47d354ae
treefa55f0649178d9c87e0608f9ee3560938f931e7a
parentda18cc2dc852c52239cec25864dd1d75aa517433
[POWERPC] iSeries: don't printk with HV spinlock held

Printk was observed to hang during module unload due to a limited
window of characters that may be sent to the hypervisor.  The window
only reexpands when we receive an ack from the HV and the spinlock here
prevents us from ever processing that ack.  This fixes it by dropping
the lock before doing the printk, then looping back to the top to
reacquire the lock.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/iseries/lpevents.c