NFSv4.1 fix infinite loop on IO BAD_STATEID error
authorOlga Kornievskaia <kolga@netapp.com>
Thu, 30 Mar 2017 17:49:03 +0000 (13:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 07:30:33 +0000 (09:30 +0200)
commit461bbb90942aea0fce1edfa271dee675cdec2029
treeff470ab10b8b8b2d0052534dc25aa64d982a3aa7
parent80df2b3e185e5e0e4a507d21119208658294f750
NFSv4.1 fix infinite loop on IO BAD_STATEID error

commit 0e3d3e5df07dcf8a50d96e0ecd6ab9a888f55dfc upstream.

Commit 63d63cbf5e03 "NFSv4.1: Don't recheck delegations that
have already been checked" introduced a regression where when a
client received BAD_STATEID error it would not send any TEST_STATEID
and instead go into an infinite loop of resending the IO that caused
the BAD_STATEID.

Fixes: 63d63cbf5e03 ("NFSv4.1: Don't recheck delegations that have already been checked")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs4proc.c