Skip to content

Commit ed7a592

Browse files
Hou TaoLinuxMinion
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]> (cherry picked from commit 4dd2eb6) Orabug: 26130728 Signed-off-by: Kirtikar Kashyap <[email protected]> Reviewed-by: Jack Vogel <[email protected]>
1 parent 13778af commit ed7a592

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
@@ -1160,6 +1160,7 @@ xfs_buf_iodone_callbacks(
11601160
*/
11611161
bp->b_last_error = 0;
11621162
bp->b_retries = 0;
1163+
bp->b_first_retry_time = 0;
11631164

11641165
xfs_buf_do_callbacks(bp);
11651166
bp->b_fspriv = NULL;

0 commit comments

Comments
 (0)