From: David Sterba Date: Wed, 19 Jul 2017 17:30:41 +0000 (+0200) Subject: btrfs: account that we're waiting for IO in scrub_submit_raid56_bio_wait X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=131ce4367a8f37c6609148117a051d86cd55a5d9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git btrfs: account that we're waiting for IO in scrub_submit_raid56_bio_wait Correctly account for IO when waiting for a submitted bio in scrub. This only for the accounting purposes and should not change other behaviour. Signed-off-by: David Sterba --- diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index de53c521a50f..f49b94ab3d2a 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -1704,7 +1704,7 @@ static int scrub_submit_raid56_bio_wait(struct btrfs_fs_info *fs_info, if (ret) return ret; - wait_for_completion(&done.event); + wait_for_completion_io(&done.event); if (done.status) return -EIO;