From: Hou Tao Date: Fri, 3 Feb 2017 22:39:07 +0000 (-0800) Subject: xfs: reset b_first_retry_time when clear the retry status of xfs_buf_t X-Git-Tag: v4.11-rc1~112^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4dd2eb633598cb6a5a0be2fd9a2be0819f5eeb5f;p=platform%2Fkernel%2Flinux-exynos.git 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 Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c index 2975cb2..0306168 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;