Skip to content

Commit 4dd2eb6

Browse files
Hou Taodjwong
authored andcommitted
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 <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
1 parent 5eda430 commit 4dd2eb6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/xfs/xfs_buf_item.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,6 +1162,7 @@ xfs_buf_iodone_callbacks(
11621162
*/
11631163
bp->b_last_error = 0;
11641164
bp->b_retries = 0;
1165+
bp->b_first_retry_time = 0;
11651166

11661167
xfs_buf_do_callbacks(bp);
11671168
bp->b_fspriv = NULL;

0 commit comments

Comments
 (0)