Re: [dm-devel] [PATCH v3 3/3] dm: properly fix redundant bio-based IO accounting

2022-01-27 Thread Christoph Hellwig
On Thu, Jan 27, 2022 at 11:17:53PM -0500, Mike Snitzer wrote: > 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

[dm-devel] [PATCH v3 3/3] dm: properly fix redundant bio-based IO accounting

2022-01-27 Thread Mike Snitzer
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: