]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[SCSI] mpt2sas: Fix drives not getting properly deleted if sas cable is removed while...
authornagalakshmi.nandigama@lsi.com <nagalakshmi.nandigama@lsi.com>
Wed, 19 Oct 2011 10:07:00 +0000 (15:37 +0530)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 30 Oct 2011 08:48:34 +0000 (12:48 +0400)
commitf881ceadd4d6afafb227bcf8165c1b63ba90065b
treedc41f0735580efb7f10f8ac2d5e314e29ec1e360
parent24f09b598dc455be84991e69ab9e6a339fd66bcf
[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 <nagalakshmi.nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/mpt2sas/mpt2sas_scsih.c