diff options
author | Christoph Hellwig <hch@lst.de> | 2014-04-14 10:30:06 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-04-15 14:03:02 -0600 |
commit | 742ee69b92d9559e968f70cf0a49157866f8fbef (patch) | |
tree | b3db69eba9482e09ee9a9e8226d59ddf861ddad5 /block | |
parent | b4f42e2831ff9b9fa19252265d7c8985d47eefb9 (diff) | |
download | linux-742ee69b92d9559e968f70cf0a49157866f8fbef.tar.gz linux-742ee69b92d9559e968f70cf0a49157866f8fbef.tar.bz2 linux-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.c | 2 |
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 |