btrfs: account that we're waiting for DIO read
David Sterba
maintainerPATCH 1/1 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 <[email protected]>
--- fs/btrfs/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/btrfs/inode.c +2 -2
@@ -8105,7 +8105,7 @@ static int __btrfs_correct_data_nocsum(struct inode *inode, goto next; } -wait_for_completion (&done.done); +wait_for_completion_io (&done.done);if (!done.uptodate) {/* We might have another mirror, so try again */
@@ -8219,7 +8219,7 @@ static int __btrfs_subio_endio_read(struct inode *inode, goto next; } -wait_for_completion (&done.done); +wait_for_completion_io (&done.done);if (!done.uptodate) {/* We might have another mirror, so try again */
Signature · 1 line
2.13.0