]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc6e27977b28b16b37b3af76b9f9d987709e19fc
tree8339f320d3eadae3b21d35a07c1f984f438a8325
parent8855689a4af4c9e628a0ef9471d9f2f330c4670f
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