Re: [dm-devel] [PATCH v3 1/3] block: add bio_start_io_acct_time() to control start_time

2022-01-28 Thread Mike Snitzer
On Fri, Jan 28 2022 at 1:13P -0500, Christoph Hellwig wrote: > On Thu, Jan 27, 2022 at 11:17:51PM -0500, Mike Snitzer wrote: > > + __part_start_io_acct(bio->bi_bdev, bio_sectors(bio), > > +bio_op(bio), start_time); > > } > > +EXPORT_SYMBOL_GPL(bio_start_io_acct_time);

Re: [dm-devel] [PATCH v3 1/3] block: add bio_start_io_acct_time() to control start_time

2022-01-27 Thread Christoph Hellwig
On Thu, Jan 27, 2022 at 11:17:51PM -0500, Mike Snitzer wrote: > + __part_start_io_acct(bio->bi_bdev, bio_sectors(bio), > + bio_op(bio), start_time); > } > +EXPORT_SYMBOL_GPL(bio_start_io_acct_time); > > /** > * bio_start_io_acct - start I/O accounting for bio

[dm-devel] [PATCH v3 1/3] block: add bio_start_io_acct_time() to control start_time

2022-01-27 Thread Mike Snitzer
bio_start_io_acct_time() interface is like bio_start_io_acct() that allows start_time to be passed in. This gives drivers the ability to defer starting accounting until after IO is issued (but possibily not entirely due to bio splitting). Signed-off-by: Mike Snitzer --- block/blk-core.c |