btrfs: account that we're waiting for IO in scrub_submit_raid56_bio_wait
authorDavid Sterba <dsterba@suse.com>
Wed, 19 Jul 2017 17:30:41 +0000 (19:30 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 14:12:04 +0000 (16:12 +0200)
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 <dsterba@suse.com>
fs/btrfs/scrub.c

index de53c521a50f53eea60d47f26031119d745ac421..f49b94ab3d2adafa9f13fb481340000b7f6a43d4 100644 (file)
@@ -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;