Эх сурвалжийг харах

blk-mq: initialize resid_len

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Christoph Hellwig 11 жил өмнө
parent
commit
742ee69b92
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  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