提交 9c17f6cd 编写于 作者: D David Sterba

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: NDavid Sterba <dsterba@suse.com>
上级 4958aa68
......@@ -8133,7 +8133,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 */
......@@ -8247,7 +8247,7 @@ static blk_status_t __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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册