diff options
Diffstat (limited to 'block/bsg.c')
| -rw-r--r-- | block/bsg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/block/bsg.c b/block/bsg.c index 206060e795da..2d746e34f4c2 100644 --- a/block/bsg.c +++ b/block/bsg.c | |||
| @@ -445,14 +445,14 @@ static int blk_complete_sgv4_hdr_rq(struct request *rq, struct sg_io_v4 *hdr, | |||
| 445 | } | 445 | } |
| 446 | 446 | ||
| 447 | if (rq->next_rq) { | 447 | if (rq->next_rq) { |
| 448 | hdr->dout_resid = rq->data_len; | 448 | hdr->dout_resid = rq->resid_len; |
| 449 | hdr->din_resid = rq->next_rq->data_len; | 449 | hdr->din_resid = rq->next_rq->resid_len; |
| 450 | blk_rq_unmap_user(bidi_bio); | 450 | blk_rq_unmap_user(bidi_bio); |
| 451 | blk_put_request(rq->next_rq); | 451 | blk_put_request(rq->next_rq); |
| 452 | } else if (rq_data_dir(rq) == READ) | 452 | } else if (rq_data_dir(rq) == READ) |
| 453 | hdr->din_resid = rq->data_len; | 453 | hdr->din_resid = rq->resid_len; |
| 454 | else | 454 | else |
| 455 | hdr->dout_resid = rq->data_len; | 455 | hdr->dout_resid = rq->resid_len; |
| 456 | 456 | ||
| 457 | /* | 457 | /* |
| 458 | * If the request generated a negative error number, return it | 458 | * If the request generated a negative error number, return it |
