]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] ibmvfc: Fix another hang on module removal
authorBrian King <brking@linux.vnet.ibm.com>
Fri, 15 Aug 2008 15:59:21 +0000 (10:59 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 16 Aug 2008 15:47:46 +0000 (10:47 -0500)
commit3eddc569770a76f2ca65621cdde3c0a2552b5b0c
treeacea9c8f9985dcac6630dc622d6682da55a2837a
parent004dd5e88673516a408f0e8e43edbe6a4424be2f
[SCSI] ibmvfc: Fix another hang on module removal

This fixes a hang on module removal. The module removal code was setting
the hosts's state to IBMVFC_HOST_OFFLINE before tearing down the kernel
thread, but, due to a bug in ibmvfc_wait_while_resetting, was not waiting
for the kernel thread's offlining work to be done prior to destroying
the kernel thread, which left the scsi host in a blocked state which we
never got out of.

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