]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
btrfs: account that we're waiting for DIO read
authorDavid Sterba <dsterba@suse.com>
Wed, 19 Jul 2017 17:26:45 +0000 (19:26 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 14:12:04 +0000 (16:12 +0200)
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>
fs/btrfs/inode.c

index 9ad9dda871ca4cbfcf0905f9b7111411908ae3a7..467b9477dac4d9cc34bdd4094cf5447aeaa9f775 100644 (file)
@@ -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 */