[SCSI] mpt2sas: Corrected conditional checks for Internal device Reset
authorKashyap, Desai <kashyap.desai@lsi.com>
Wed, 17 Mar 2010 10:52:21 +0000 (16:22 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 14:23:54 +0000 (09:23 -0500)
commitf891dcfdc11d2004253861f51d627bfda6773c76
tree01a4387498cc864d18f25a2ab743aede2b33b292
parent7921b35c5fcf300ebd860e3e7894c692c9547838
[SCSI] mpt2sas: Corrected conditional checks for Internal device Reset

bug fix in the handling of the internal device reset event
The reason code check in scsih_sas_device_status_change_event never
evaluates as true for internal device reset, hence driver never quiesce s IO
when firmware is sending a device reset. The fix is to change the
evaluate to:
if (event_data->ReasonCode !=
    MPI2_EVENT_SAS_DEV_STAT_RC_INTERNAL_DEVICE_RESET &&
   event_data->ReasonCode !=
    MPI2_EVENT_SAS_DEV_STAT_RC_CMP_INTERNAL_DEV_RESET)
        return;

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