diff options
author | Jamie Wellnitz <Jamie.Wellnitz@emulex.com> | 2008-09-11 21:39:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-11-06 19:05:36 -0800 |
commit | 5af73683b72a1d37ebb785eb4f03d9002c47e186 (patch) | |
tree | 4630a6761b60ad0d58c06ee3fb41c220f9cc0d4a /arch | |
parent | da76580e24c6a30c31080d3cee44ef3f335b4f83 (diff) |
SCSI: sd: Fix handling of NO_SENSE check condition
commit 10dab22664914505dcb804d9ad09cad6bc94d349 upstream
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions