NFSv4: Fix client recovery when server reboots multiple times
diff mbox

Message ID
State New
Headers show

Commit Message

Trond Myklebust Jan. 13, 2017, 7:30 p.m. UTC
If the server reboots multiple times, the client should rely on the
server to tell it that it cannot reclaim state as per section
in RFC7530 and section in RFC5661.
Currently, the client is being to conservative, and is assuming that
if the server reboots while state recovery is in progress, then it must
ignore state that was not recovered before the reboot.

Signed-off-by: Trond Myklebust <>
 fs/nfs/nfs4state.c | 1 -
 1 file changed, 1 deletion(-)

diff mbox

diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index 1d152f4470cd..90e6193ce6be 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -1729,7 +1729,6 @@  static int nfs4_recovery_handle_error(struct nfs_client *clp, int error)
 			set_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state);
-			nfs4_state_clear_reclaim_reboot(clp);