]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit88f0178e6ec2c73167de973e4af86905b4dbfd45
treefa55f0649178d9c87e0608f9ee3560938f931e7a
parentda8cadb31b82c9d41fc593c8deab6aa20b162d6b
[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