Re: [dm-devel] [PATCH 5/9] block: use ->bi_bdev for bio based I/O accounting

2020-12-02 Thread Tejun Heo
On Tue, Dec 01, 2020 at 05:54:20PM +0100, Christoph Hellwig wrote: > Rework the I/O accounting for bio based drivers to use ->bi_bdev. This > means all drivers can now simply use bio_start_io_acct to start > accounting, and it will take partitions into account automatically. To > end I/O account

[dm-devel] [PATCH 5/9] block: use ->bi_bdev for bio based I/O accounting

2020-12-01 Thread Christoph Hellwig
Rework the I/O accounting for bio based drivers to use ->bi_bdev. This means all drivers can now simply use bio_start_io_acct to start accounting, and it will take partitions into account automatically. To end I/O account either bio_end_io_acct can be used if the driver never remaps I/O to a