[dm-devel] [PATCH v2 10/14] block: add bio_start_io_acct_remapped for the benefit of DM

Christoph Hellwig hch at infradead.org
Mon Feb 14 14:02:51 UTC 2022


On Fri, Feb 11, 2022 at 04:40:53PM -0500, Mike Snitzer wrote:
> DM needs the ability to account a clone bio's IO to the original
> block_device. So add @orig_bdev argument to bio_start_io_acct_time.
> 
> Rename bio_start_io_acct_time to bio_start_io_acct_remapped.
> 
> Also, follow bio_end_io_acct and bio_end_io_acct_remapped pattern by
> moving bio_start_io_acct to blkdev.h and have it call
> bio_start_io_acct_remapped.

Looks good:

Reviewed-by: Christoph Hellwig <hch at lst.de>




More information about the dm-devel mailing list