diff options
author | David Sterba <dsterba@suse.com> | 2017-07-19 19:26:45 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-08-16 16:12:04 +0200 |
commit | 9c17f6cda1f5debb186a2af1dad4178f63cfbace (patch) | |
tree | f7d1d1697688ad2da831ca0eee6ae9127556cc2b /fs/btrfs/inode.c | |
parent | 4958aa6821c7c4e9682806bc4fea92250d020829 (diff) | |
download | linux-9c17f6cda1f5debb186a2af1dad4178f63cfbace.tar.gz linux-9c17f6cda1f5debb186a2af1dad4178f63cfbace.tar.bz2 linux-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/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 4 |
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 */ |