From: Christoph Hellwig Date: Mon, 14 Apr 2014 08:30:06 +0000 (+0200) Subject: blk-mq: initialize resid_len X-Git-Tag: v3.16-rc1~30^2~47^2~73 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=742ee69b92d9559e968f70cf0a49157866f8fbef;p=thirdparty%2Flinux.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 5455ed19de1c5..658428a28fafb 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