]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit0824f6200482a6deec9497642efc42e302c117e1
tree04ec070534bd97d814e98428a966ceb2e51c4545
parent8d9fc286a1e19421cb2e5383e7d46b265b1a7b58
[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