atiixp: hang fix
commit891ff634a279da34545787413355a2fd6f8487d4
authorAlan Cox <alan@redhat.com>
Mon, 22 Jan 2007 19:39:00 +0000 (22 20:39 +0100)
committerAdrian Bunk <bunk@stusta.de>
Mon, 22 Jan 2007 20:41:23 +0000 (22 21:41 +0100)
tree140f34751556d002e90c4b8ffd17f1b5015789b9
parent4c9b69a98c625f00289719ad94e1242d3a1436ea
atiixp: hang fix

When the old IDE layer calls into methods in the driver during error
handling it is essentially random whether ide_lock is already held.  This
causes a deadlock in the atiixp driver which also uses ide_lock internally
for locking.

Switch to a private lock instead.

[akpm@osl.org: cleanup]
Signed-off-by: Alan Cox <alan@redhat.com>
Acked-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/ide/pci/atiixp.c