]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[SCSI] ibmvscsi: Fix error path deadlock
authorBrian King <brking@linux.vnet.ibm.com>
Thu, 17 Jun 2010 18:56:02 +0000 (13:56 -0500)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:03:46 +0000 (12:03 -0500)
commit1117ef8aed95521f46dae3052c7120baae48c2bb
tree212f2b5fdfd67f619c8ac3930aef2c5fa9825cfa
parent0f33ece5bc3d5a9567b65cfbc736e8f206ecfc7b
[SCSI] ibmvscsi: Fix error path deadlock

Fixes a deadlock that can occur if we hit a command timeout
during the virtual adapter initialization. The event done
functions are written with the assumption that no locks are held,
however, when purging requests this is not true. Fix up the
purge function to drop the lock so that the done function
is not called with the lock held, which can cause a deadlock.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/ibmvscsi/ibmvscsi.c