Skip to content
Commit b879f915 authored by Mike Snitzer's avatar Mike Snitzer Committed by Jens Axboe
Browse files

dm: properly fix redundant bio-based IO accounting



Record the start_time for a bio but defer the starting block core's IO
accounting until after IO is submitted using bio_start_io_acct_time().

This approach avoids the need to mess around with any of the
individual IO stats in response to a bio_split() that follows bio
submission.

Reported-by: default avatarBud Brown <bubrown@redhat.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org
Depends-on: e45c47d1

 ("block: add bio_start_io_acct_time() to control start_time")
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Link: https://lore.kernel.org/r/20220128155841.39644-4-snitzer@redhat.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f524d9c9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment