blk-mq: initialize resid_len
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
b4f42e2831
commit
742ee69b92
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue