Skip to contentSkip to conversation

Fixing lease renewal

PATCH In review Olga Kornievskaia 2 participants 2 messages Sep 24, 2014

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

PATCH 1/1 Fixing lease renewal

Commit c9fdeb28 removed a 'continue' after checking if the lease needs to be renewed. However, if client hasn't moved, the code falls down to starting reboot recovery erroneously (ie., sends open reclaim and gets back stale_clientid error) before recovering from getting stale_clientid on the renew operation.

---
 fs/nfs/nfs4state.c | 1 +
 1 file changed, 1 insertion(+)
fs/nfs/nfs4state.c +1 -0
index 22fe351..6678769 100644
@@ -2345,6 +2345,7 @@ static void nfs4_state_manager(struct nfs_client *clp)
 			status = nfs4_check_lease(clp);
 			if (status < 0)
 				goto out_error;
+			continue;
 		}
 
 		if (test_and_clear_bit(NFS4CLNT_MOVED, &clp->cl_state)) {
Signature · 1 line
1.8.5.2 (Apple Git-48)
#1 lore raw
Quoted 24 lines · Olga Kornievskaia

Commit c9fdeb28 removed a 'continue' after checking if the lease needs to be renewed. However, if client hasn't moved, the code falls down to starting reboot recovery erroneously (ie., sends open reclaim and gets back stale_clientid error) before recovering from getting stale_clientid on the renew operation.

---
 fs/nfs/nfs4state.c | 1 +
 1 file changed, 1 insertion(+)
fs/nfs/nfs4state.c +1 -1
index 22fe351..6678769 100644
@@ -2345,6 +2345,7 @@ static void nfs4_state_manager(struct nfs_client *clp)
                        status = nfs4_check_lease(clp);
                        if (status < 0)
                                goto out_error;
+                       continue;
                }
 
                if (test_and_clear_bit(NFS4CLNT_MOVED, &clp->cl_state)) {
--
Quoted 1 line

1.8.5.2 (Apple Git-48)

Thanks Olga! Will apply.

Signature · 5 lines
Trond Myklebust

Linux NFS client maintainer, PrimaryData

[email protected]