Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 131ce436 authored by David Sterba's avatar David Sterba
Browse files

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: default avatarDavid Sterba <dsterba@suse.com>
parent 9c17f6cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;