Skip to contentSkip to conversation

NFSv4: Fix client recovery when server reboots multiple times

PATCH New Trond Myklebust 1 participant 1 message Jan 13, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 NFSv4: Fix client recovery when server reboots multiple times

If the server reboots multiple times, the client should rely on the server to tell it that it cannot reclaim state as per section 9.6.3.4 in RFC7530 and section 8.4.2.1 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.

---
 fs/nfs/nfs4state.c | 1 -
 1 file changed, 1 deletion(-)
fs/nfs/nfs4state.c +0 -1
index 1d152f4470cd..90e6193ce6be 100644
@@ -1729,7 +1729,6 @@ static int nfs4_recovery_handle_error(struct nfs_client *clp, int error)
 			break;
 		case -NFS4ERR_STALE_CLIENTID:
 			set_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state);
-			nfs4_state_clear_reclaim_reboot(clp);
 			nfs4_state_start_reclaim_reboot(clp);
 			break;
 		case -NFS4ERR_EXPIRED:
Signature · 1 line
2.9.3