NFSv4.1: Handle RECLAIM_COMPLETE trunking errors
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 16 Oct 2022 18:44:32 +0000 (14:44 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 27 Oct 2022 19:52:10 +0000 (15:52 -0400)
If RECLAIM_COMPLETE sets the NFS4CLNT_BIND_CONN_TO_SESSION flag, then we
need to loop back in order to handle it.

Fixes: 0048fdd06614 ("NFSv4.1: RECLAIM_COMPLETE must handle NFS4ERR_CONN_NOT_BOUND_TO_SESSION")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4state.c

index c3503fb..acdc74b 100644 (file)
@@ -2670,6 +2670,7 @@ static void nfs4_state_manager(struct nfs_client *clp)
                        if (status < 0)
                                goto out_error;
                        nfs4_state_end_reclaim_reboot(clp);
+                       continue;
                }
 
                /* Detect expired delegations... */