diff options
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index cdc629cf075b..e4fbcc3fd2db 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c | |||
@@ -301,7 +301,7 @@ void blk_mq_complete_request(struct request *rq, int error) | |||
301 | struct bio *next = bio->bi_next; | 301 | struct bio *next = bio->bi_next; |
302 | 302 | ||
303 | bio->bi_next = NULL; | 303 | bio->bi_next = NULL; |
304 | bytes += bio->bi_size; | 304 | bytes += bio->bi_iter.bi_size; |
305 | blk_mq_bio_endio(rq, bio, error); | 305 | blk_mq_bio_endio(rq, bio, error); |
306 | bio = next; | 306 | bio = next; |
307 | } | 307 | } |