summaryrefslogtreecommitdiffstats
path: root/drivers/md/md-multipath.c
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2023-06-21 18:51:08 +0200
committerSong Liu <song@kernel.org>2023-07-27 09:13:29 +0200
commitbdf2b52136dd19a55aaf5484cb254498c61383a5 (patch)
treeab82f235467cb8189cf6bbdcff349311d69f3a0e /drivers/md/md-multipath.c
parentmd/raid10: switch to use md_account_bio() for io accounting (diff)
downloadlinux-bdf2b52136dd19a55aaf5484cb254498c61383a5.tar.xz
linux-bdf2b52136dd19a55aaf5484cb254498c61383a5.zip
md/md-multipath: 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-7-yukuai1@huaweicloud.com
Diffstat (limited to '')
-rw-r--r--drivers/md/md-multipath.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md-multipath.c b/drivers/md/md-multipath.c
index 92c45be203d7..d22276870283 100644
--- a/drivers/md/md-multipath.c
+++ b/drivers/md/md-multipath.c
@@ -107,6 +107,7 @@ static bool multipath_make_request(struct mddev *mddev, struct bio * bio)
&& md_flush_request(mddev, bio))
return true;
+ md_account_bio(mddev, &bio);
mp_bh = mempool_alloc(&conf->pool, GFP_NOIO);
mp_bh->master_bio = bio;