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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 07:30:31 +0000 (09:30 +0200)
commite060f4884c93eb980c6e2cb3f19bf4b7582fd460
tree68496bbffce81d482f37a93d4ce9fddd65495efb
parente02f0ff252f2cd402063636ccea812a35034d6d7
xfs: reset b_first_retry_time when clear the retry status of xfs_buf_t

commit 4dd2eb633598cb6a5a0be2fd9a2be0819f5eeb5f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_buf_item.c