]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
xfs: reset b_first_retry_time when clear the retry status of xfs_buf_t
authorHou Tao <houtao1@huawei.com>
Fri, 3 Feb 2017 22:39:07 +0000 (14:39 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 10 Jun 2017 00:25:19 +0000 (17:25 -0700)
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>
(cherry picked from commit 4dd2eb633598cb6a5a0be2fd9a2be0819f5eeb5f)

Orabug: 26130728

Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
fs/xfs/xfs_buf_item.c

index 54e4f7e6a9a78e410c34499bdbf363953de610a3..34f2218aaafdaaefa04ed35f5008a986a008ec94 100644 (file)
@@ -1160,6 +1160,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;