projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8204552
)
md/md-multipath: enable io accounting
author
Yu Kuai
<yukuai3@huawei.com>
Wed, 21 Jun 2023 16:51:08 +0000
(
00:51
+0800)
committer
Song Liu
<song@kernel.org>
Thu, 27 Jul 2023 07:13:29 +0000
(
00:13
-0700)
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
drivers/md/md-multipath.c
patch
|
blob
|
history
diff --git
a/drivers/md/md-multipath.c
b/drivers/md/md-multipath.c
index
92c45be
..
d222768
100644
(file)
--- 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;