summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2014-04-14 10:30:06 +0200
committerJens Axboe <axboe@fb.com>2014-04-15 14:03:02 -0600
commit742ee69b92d9559e968f70cf0a49157866f8fbef (patch)
treeb3db69eba9482e09ee9a9e8226d59ddf861ddad5 /block
parentb4f42e2831ff9b9fa19252265d7c8985d47eefb9 (diff)
downloadlwn-742ee69b92d9559e968f70cf0a49157866f8fbef.tar.gz
lwn-742ee69b92d9559e968f70cf0a49157866f8fbef.zip
blk-mq: initialize resid_len
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-mq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 5455ed19de1c..658428a28faf 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -353,6 +353,8 @@ static void blk_mq_start_request(struct request *rq, bool last)
trace_block_rq_issue(q, rq);
+ rq->resid_len = blk_rq_bytes(rq);
+
/*
* Just mark start time and set the started bit. Due to memory
* ordering, we know we'll see the correct deadline as long as