diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 9ad9dda871ca4c..467b9477dac4d9 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8133,7 +8133,7 @@ static int __btrfs_correct_data_nocsum(struct inode *inode, goto next; } - wait_for_completion(&done.done); + wait_for_completion_io(&done.done); if (!done.uptodate) { /* We might have another mirror, so try again */ @@ -8247,7 +8247,7 @@ static blk_status_t __btrfs_subio_endio_read(struct inode *inode, goto next; } - wait_for_completion(&done.done); + wait_for_completion_io(&done.done); if (!done.uptodate) { /* We might have another mirror, so try again */