From: Christoph Hellwig Date: Mon, 14 Apr 2014 08:30:06 +0000 (+0200) Subject: blk-mq: initialize resid_len X-Git-Tag: firefly_0821_release~176^2~3465^2~50^2~73 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=742ee69b92d9559e968f70cf0a49157866f8fbef;p=firefly-linux-kernel-4.4.55.git blk-mq: initialize resid_len Signed-off-by: Christoph Hellwig Signed-off-by: Jens Axboe --- 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