From: Brian King Date: Fri, 15 Aug 2008 15:59:21 +0000 (-0500) Subject: [SCSI] ibmvfc: Fix another hang on module removal X-Git-Tag: v2.6.27-rc4~33^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3eddc569770a76f2ca65621cdde3c0a2552b5b0c;p=pandora-kernel.git [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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed