aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2017-07-19 19:26:45 +0200
committerDavid Sterba <dsterba@suse.com>2017-08-16 16:12:04 +0200
commit9c17f6cda1f5debb186a2af1dad4178f63cfbace (patch)
treef7d1d1697688ad2da831ca0eee6ae9127556cc2b /fs/btrfs
parentbtrfs: drop chunk locks at the end of close_ctree (diff)
downloadlinux-dev-9c17f6cda1f5debb186a2af1dad4178f63cfbace.tar.xz
linux-dev-9c17f6cda1f5debb186a2af1dad4178f63cfbace.zip
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 <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/inode.c4
1 files 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 */