diff options
author | Jamie Wellnitz <Jamie.Wellnitz@emulex.com> | 2008-09-12 01:39:36 (GMT) |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-10-23 16:42:17 (GMT) |
commit | 10dab22664914505dcb804d9ad09cad6bc94d349 (patch) | |
tree | 11c7737944fbe10147d4ef335ba91bd5d7b8f937 /drivers/scsi/scsi_netlink.c | |
parent | 6c5121b78ba5c70a9990e2af6cb4d6bbffe0d4d8 (diff) | |
download | linux-fsl-qoriq-10dab22664914505dcb804d9ad09cad6bc94d349.tar.xz |
[SCSI] sd: Fix handling of NO_SENSE check condition
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>
Diffstat (limited to 'drivers/scsi/scsi_netlink.c')
0 files changed, 0 insertions, 0 deletions