Skip to contentSkip to conversation

btrfs: account that we're waiting for IO in scrub_submit_raid56_bio_wait

PATCH New David Sterba 1 participant 1 message Jul 19, 2017 Btrfs file system

lore
Share & tools
lore

David Sterba

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 fs/btrfs/scrub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/scrub.c +1 -1
index 0cebeb5eb5d0..0e6daf0582a1 100644
@@ -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.error)
 		return -EIO;
 
Signature · 1 line
2.13.0