diff --git a/block/blk-mq.c b/block/blk-mq.c index 5455ed19de1c5aa82c46d2f4ab434f2cf24e746a..658428a28fafb47e3644c100f320addaf1d62e26 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