blk-mq: initialize resid_len
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Apr 2014 08:30:06 +0000 (10:30 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 15 Apr 2014 20:03:02 +0000 (14:03 -0600)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c

index 5455ed19de1c5aa82c46d2f4ab434f2cf24e746a..658428a28fafb47e3644c100f320addaf1d62e26 100644 (file)
@@ -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