diff mbox series

[2/3] NFSv4.1: Handle RECLAIM_COMPLETE trunking errors

Message ID 20221016184433.31213-2-trondmy@kernel.org (mailing list archive)
State New, archived
Headers show
Series [1/3] NFSv4: Fix a potential state reclaim deadlock | expand

Commit Message

Trond Myklebust Oct. 16, 2022, 6:44 p.m. UTC
From: Trond Myklebust <trond.myklebust@hammerspace.com>

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>
---
 fs/nfs/nfs4state.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index 9bab3e9c702a..0b6bd6336c98 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -2671,6 +2671,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... */