From: Jamie Wellnitz Date: Fri, 12 Sep 2008 01:39:36 +0000 (-0400) Subject: SCSI: sd: Fix handling of NO_SENSE check condition X-Git-Tag: v2.6.27.5~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5af73683b72a1d37ebb785eb4f03d9002c47e186;p=pandora-kernel.git 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 Signed-off-by: James Bottomley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed