aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2014-04-14 04:30:06 -0400
committerJens Axboe <axboe@fb.com>2014-04-15 16:03:02 -0400
commit742ee69b92d9559e968f70cf0a49157866f8fbef (patch)
treeb3db69eba9482e09ee9a9e8226d59ddf861ddad5 /block/blk-mq.c
parentb4f42e2831ff9b9fa19252265d7c8985d47eefb9 (diff)
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/blk-mq.c')
-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)
353 353
354 trace_block_rq_issue(q, rq); 354 trace_block_rq_issue(q, rq);
355 355
356 rq->resid_len = blk_rq_bytes(rq);
357
356 /* 358 /*
357 * Just mark start time and set the started bit. Due to memory 359 * Just mark start time and set the started bit. Due to memory
358 * ordering, we know we'll see the correct deadline as long as 360 * ordering, we know we'll see the correct deadline as long as