From: Kashyap, Desai Date: Wed, 16 Dec 2009 13:20:06 +0000 (+0530) Subject: [SCSI] mpt2sas: Delete volume before HBA detach. X-Git-Tag: v2.6.34-rc1~284^2~120 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7384b28afb2bf2b7be835ddc8c852bdc5e0ce1c;p=pandora-kernel.git [SCSI] mpt2sas: Delete volume before HBA detach. The driver hangs when doing `rmmod mpt2sas` if there are any IR volumes present.The hang is due the scsi midlayer trying to access the IR volumes after the driver releases controller resources. Perhaps when scsi_remove_host is called,the scsi mid layer is sending some request. This doesn't occur for bare drives becuase the driver is already reporting those drives deleted prior to calling mpt2sas_base_detach. To solve this issue, we need to delete the volumes as well. Signed-off-by: Kashyap Desai Reviewed-by: Eric Moore Signed-off-by: James Bottomley --- Reading git-diff-tree failed