From 9c17f6cda1f5debb186a2af1dad4178f63cfbace Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 19 Jul 2017 19:26:45 +0200 Subject: [PATCH] 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 --- fs/btrfs/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.20.1