md/raid10: switch to use md_account_bio() for io accounting
authorYu Kuai <yukuai3@huawei.com>
Wed, 21 Jun 2023 16:51:07 +0000 (00:51 +0800)
committerSong Liu <song@kernel.org>
Thu, 27 Jul 2023 07:13:29 +0000 (00:13 -0700)
commit820455238366a78a44a85cc7d58a987e728464d9
treeae0957e9cbf904b049407074a68c13392bfcd120
parentbb2a9acefaf9ce5bbc1e70f407e34599233d0243
md/raid10: switch to use md_account_bio() for io accounting

Make sure that 'active_io' will represent inflight io instead of io that
is dispatching, and io accounting from all levels will be consistent.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230621165110.1498313-6-yukuai1@huaweicloud.com
drivers/md/raid10.c
drivers/md/raid10.h