From: David Sterba Date: Wed, 19 Jul 2017 17:26:45 +0000 (+0200) Subject: btrfs: account that we're waiting for DIO read X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9c17f6cda1f5debb186a2af1dad4178f63cfbace;p=linux.git btrfs: account that we're waiting for DIO read Correctly account for IO when waiting for a submitted DIO read, the case when we're retrying. This only for the accounting purposes and should not change other behaviour. Signed-off-by: David Sterba --- diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 9ad9dda871ca4..467b9477dac4d 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -8133,7 +8133,7 @@ next_block_or_try_again: 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 @@ try_again: goto next; } - wait_for_completion(&done.done); + wait_for_completion_io(&done.done); if (!done.uptodate) { /* We might have another mirror, so try again */