summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_buf_item.c
diff options
context:
space:
mode:
authorHou Tao <houtao1@huawei.com>2017-02-04 01:39:07 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2017-02-04 01:39:07 +0300
commit4dd2eb633598cb6a5a0be2fd9a2be0819f5eeb5f (patch)
treea0e9270bac8c6d65982c85ab69312ebe0dd86a8c /fs/xfs/xfs_buf_item.c
parent5eda43000064a69a39fb7869cc63c9571535ad29 (diff)
downloadlinux-4dd2eb633598cb6a5a0be2fd9a2be0819f5eeb5f.tar.xz
xfs: reset b_first_retry_time when clear the retry status of xfs_buf_t
After successful IO or permanent error, b_first_retry_time also needs to be cleared, else the invalid first retry time will be used by the next retry check. Signed-off-by: Hou Tao <houtao1@huawei.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_buf_item.c')
-rw-r--r--fs/xfs/xfs_buf_item.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c
index 2975cb2319f4..0306168af332 100644
--- a/fs/xfs/xfs_buf_item.c
+++ b/fs/xfs/xfs_buf_item.c
@@ -1162,6 +1162,7 @@ xfs_buf_iodone_callbacks(
*/
bp->b_last_error = 0;
bp->b_retries = 0;
+ bp->b_first_retry_time = 0;
xfs_buf_do_callbacks(bp);
bp->b_fspriv = NULL;