]> err.no Git - linux-2.6/commit
[SCSI] ibmvfc: Fix hang on module removal
authorBrian King <brking@linux.vnet.ibm.com>
Tue, 22 Jul 2008 13:31:42 +0000 (08:31 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 26 Jul 2008 19:14:57 +0000 (15:14 -0400)
commit2d0da2a44e065a5bdd90bed2ebe0b9216c27f682
tree6658ff20477018a5dc749d0637ee1fea6d37ccc2
parentb3c10489cb464b12a74dda65f826433f71f2c2e2
[SCSI] ibmvfc: Fix hang on module removal

If certain ELS events are received during module removal, after the kthread
is stopped, the rmmod can hang. This fixes the ibmvfc driver so that ELS
events during rmmod are ignored by stopping all device activity prior to
killing the kthread and also changes reinitialization to not attempt a reinit
if the adapter has been taken offline.

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