]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - block/scsi_ioctl.c
block: add rq->resid_len
[net-next-2.6.git] / block / scsi_ioctl.c
index 58cf4560f742fefb84c46bd96bc7eb0c10aebb6f..a9670dd4b5de034cf2130f2fa0f552eda1bd80c5 100644 (file)
@@ -230,7 +230,7 @@ static int blk_complete_sghdr_rq(struct request *rq, struct sg_io_hdr *hdr,
        hdr->info = 0;
        if (hdr->masked_status || hdr->host_status || hdr->driver_status)
                hdr->info |= SG_INFO_CHECK;
-       hdr->resid = rq->data_len;
+       hdr->resid = rq->resid_len;
        hdr->sb_len_wr = 0;
 
        if (rq->sense_len && hdr->sbp) {