From: nagalakshmi.nandigama@lsi.com Date: Wed, 19 Oct 2011 10:07:00 +0000 (+0530) Subject: [SCSI] mpt2sas: Fix drives not getting properly deleted if sas cable is removed while... X-Git-Tag: v3.2-rc1~44^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f881ceadd4d6afafb227bcf8165c1b63ba90065b;p=pandora-kernel.git [SCSI] mpt2sas: Fix drives not getting properly deleted if sas cable is removed while host reset is active The fix is in the driver-firmware handshake device removal code. We need to read the controller ioc_state to see if controller is OPERATIONAL prior to sending target reset and OP_REMOVE. Previously it was checking the flag ioc->shost_recovery flag, which is always set when host reset is active, thus preventing drives from getting properly deleted. Signed-off-by: Nagalakshmi Nandigama Signed-off-by: James Bottomley --- Reading git-diff-tree failed