Skip to content

Commit

Permalink
blk-mq: initialize resid_len
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
  • Loading branch information
Christoph Hellwig authored and Jens Axboe committed Apr 15, 2014
1 parent b4f42e2 commit 742ee69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions block/blk-mq.c
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 742ee69

Please sign in to comment.