dm: switch to bdev based IO accounting interfaces
authorMing Lei <ming.lei@redhat.com>
Tue, 12 Apr 2022 08:56:12 +0000 (16:56 +0800)
committerMike Snitzer <snitzer@kernel.org>
Thu, 5 May 2022 21:31:35 +0000 (17:31 -0400)
commitd3de6d12694de45dfb4d7821d09224ed43dde3d7
tree8339f320d3eadae3b21d35a07c1f984f438a8325
parente6926ad0c988d4cf8d4f4ec77373572831149104
dm: switch to bdev based IO accounting interfaces

DM splits flush with data into empty flush followed by bio with data
payload, switch dm_io_acct() to use bdev_{start,end}_io_acct() to do
this accoiunting more naturally (rather than temporarily changing the
bio's bi_size).

This will allow DM to more easily account bios that are split (in
following commit).

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm.c