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: https://git.stricted.de/?a=commitdiff_plain;h=9c17f6cda1f5debb186a2af1dad4178f63cfbace;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 9ad9dda871ca..467b9477dac4 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 */