Commit b3d77ee4 authored by Douglas Gilbert's avatar Douglas Gilbert Committed by James Bottomley

[PATCH] extracting resid from struct scsi_cmnd

    - during successful command completion place resid from SCSI
      LLDs into request::data_len so that block SG_IO ioctl reports
      resid
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 56899e69
...@@ -728,7 +728,7 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes, ...@@ -728,7 +728,7 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes,
req->sense_len = len; req->sense_len = len;
} }
} else } else
req->data_len -= cmd->bufflen; req->data_len = cmd->resid;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment