[SCSI] mpt2sas: Add additional check for responding volumes after Host Reset
commitd417d1c3a3c3b4d89a285f82a4e7710372e40a24
authorKashyap, Desai <kashyap.desai@lsi.com>
Thu, 17 Jun 2010 08:18:10 +0000 (17 13:48 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:02:21 +0000 (27 12:02 -0500)
tree73529cc96a70beb5d82a0f0d1a0a2bcd2b407fb6
parent3e2e833a547cbd0cb3fbe85a5f6ee71a93931fde
[SCSI] mpt2sas: Add additional check for responding volumes after Host Reset

ISSUE DESCRIPTION:
This test case involves creating two RAID1 volumes,  then
simultaneiously issue host reset and pull all the drives associated to
the 1st raid volume.  The observed behavour is the physical drives are
removed, however the volume remains.   The expected behavour is the
volume as well as physical drives should be removed from OS.

FIX:
Add support in the post host reset device scan logic for raid volumes
where the driver will have an additional check for responding raid
volume where the status should be either online, optimal, or degraded.
So for voluemes that have a status of missing or failed, the driver
will mark them for deletion.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/mpt2sas/mpt2sas_scsih.c