Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 742ee69b authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe
Browse files

blk-mq: initialize resid_len



Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent b4f42e28
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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