Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

md/md-faulty: 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-9-yukuai1@huaweicloud.com

authored by

Yu Kuai and committed by
Song Liu
dd9a6860 09f43cb5

+2
+2
drivers/md/md-faulty.c
··· 204 204 failit = 1; 205 205 } 206 206 } 207 + 208 + md_account_bio(mddev, &bio); 207 209 if (failit) { 208 210 struct bio *b = bio_alloc_clone(conf->rdev->bdev, bio, GFP_NOIO, 209 211 &mddev->bio_set);