From: Pete Wyckoff Date: Tue, 13 Mar 2007 20:53:28 +0000 (-0400) Subject: [SCSI] set resid in scsi_io_completion() even for check condition X-Git-Tag: v2.6.22-rc1~1015^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b22f687dd28a7a8886b918294b4d558ef175c07d;p=pandora-kernel.git [SCSI] set resid in scsi_io_completion() even for check condition Some targets can return both valid data and sense information. Always update the request data_len from the SCSI command residual. Callers should interpret sense data to determine what parts of the data are valid in case of a CHECK CONDITION status. Signed-off-by: Pete Wyckoff Signed-off-by: James Bottomley --- Reading git-diff-tree failed