]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] sd: Fix handling of NO_SENSE check condition
authorJamie Wellnitz <Jamie.Wellnitz@emulex.com>
Fri, 12 Sep 2008 01:39:36 +0000 (21:39 -0400)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 23 Oct 2008 16:42:17 +0000 (11:42 -0500)
The current handling of NO_SENSE check condition is the same as
RECOVERED_ERROR, and assumes that in both cases, the I/O was fully
transferred.

We have seen cases of arrays returning with NO_SENSE (no error), but
the I/O was not completely transferred, thus residual set.  Thus,
rather than return good_bytes as the entire transfer, set good_bytes
to 0, so that the midlayer then applies the residual in calculating
the transfer, and for sd, will fail the I/O and fall into a retry
path.

Signed-off-by: Jamie Wellnitz <Jamie.Wellnitz@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

No differences found