md/md-linear: enable io accounting
authorYu Kuai <yukuai3@huawei.com>
Wed, 21 Jun 2023 16:51:09 +0000 (00:51 +0800)
committerSong Liu <song@kernel.org>
Thu, 27 Jul 2023 07:13:30 +0000 (00:13 -0700)
commit09f43cb530b03e4d58b35a39e54de658fc8d09b7
tree4b36f4881deb294dc303016dba38830069148e07
parentbdf2b52136dd19a55aaf5484cb254498c61383a5
md/md-linear: enable io accounting

use md_account_bio() to enable io accounting, also make sure
mddev_suspend() will wait for all io to be done.

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-8-yukuai1@huaweicloud.com
drivers/md/md-linear.c