Browse Source

blk-mq: initialize resid_len

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Christoph Hellwig 11 years ago
parent
commit
742ee69b92
1 changed files with 2 additions and 0 deletions
  1. 2 0
      block/blk-mq.c

+ 2 - 0
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