aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/disk-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index bfcbab3a7607..917e29167580 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -3519,7 +3519,7 @@ static int wait_dev_flush(struct btrfs_device *device)
return 0;
device->flush_bio_sent = 0;
- wait_for_completion(&device->flush_wait);
+ wait_for_completion_io(&device->flush_wait);
if (bio->bi_error) {
ret = bio->bi_error;