[SCSI] mpt2sas: Add support in the driver to check for valid response info
authorKashyap, Desai <kashyap.desai@lsi.com>
Wed, 23 Sep 2009 11:53:07 +0000 (17:23 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 29 Oct 2009 17:03:09 +0000 (13:03 -0400)
commit9982f59450930138eb0bf9a4ebf865e8c06ba705
tree04ec070534bd97d814e98428a966ceb2e51c4545
parenta28eb222e3890a4ce190a430e24c483d2b5bb13b
[SCSI] mpt2sas: Add support in the driver to check for valid response info

Add support in the driver to check for valid response info in the scsi
state, then check to see if the response code is
MPI2_SCSITASKMGMT_RSP_INVALID_FRAME; when this condition occurrs, the driver
will return DID_SOFT_ERROR.  A return code of DID_SOFT_ERROR will result in
a retry at the scsi-mid layer level.  An additional change added to obtain
the response code from the 1st byte of the response info instead of last.

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