From: Christoph Hellwig Date: Mon, 14 Apr 2014 08:30:06 +0000 (+0200) Subject: blk-mq: initialize resid_len X-Git-Tag: v3.16-rc3~16^2~7^2~69 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=742ee69b92d9559e968f70cf0a49157866f8fbef;p=linux.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