[SCSI] set resid in scsi_io_completion() even for check condition
authorPete Wyckoff <pw@osc.edu>
Tue, 13 Mar 2007 20:53:28 +0000 (16:53 -0400)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Tue, 20 Mar 2007 15:53:51 +0000 (10:53 -0500)
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 <pw@osc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

No differences found