]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: lpfc: Treat SCSI Write operation Underruns as an error
authorJames Smart <jsmart2021@gmail.com>
Tue, 30 Jan 2018 23:59:00 +0000 (15:59 -0800)
committerJack Vogel <jack.vogel@oracle.com>
Thu, 8 Mar 2018 04:29:09 +0000 (20:29 -0800)
commitf896a1e535aecd0d0b0bbd364147507947542cf8
tree064c1e3d36b0f32e60cd36aaf960f8befc8230e3
parentd5ca78ffdfc4b535bdcc14e46882546dced647de
scsi: lpfc: Treat SCSI Write operation Underruns as an error

Orabug: 27631736

Currently, write underruns (mismatch of amount transferred vs scsi
status and its residual) detected by the adapter are not being flagged
as an error. Its expected the target controls the data transfer and
would appropriately set the RSP values.  Only read underruns are treated
as errors.

Revise the SCSI error handling to treat write underruns as an error as
well.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit 45634a86ca6e98dbcaddb763f8e90ad243057789)
Signed-off-by: Dick dkennedy <dick.kennedy@broadcom.com>
Signed-off-by: Dan Duval <dan.duval@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/scsi/lpfc/lpfc_scsi.c