Skip to content

Commit 40882de

Browse files
Trond Myklebustamschuma-ntap
authored andcommitted
NFSv4.1: Always send a RECLAIM_COMPLETE after establishing lease
The spec requires that we always at least send a RECLAIM_COMPLETE when we're done establishing the lease and recovering any state. Fixes: fce5c83 ("nfs41: RECLAIM_COMPLETE functionality") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
1 parent 09a9639 commit 40882de

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

fs/nfs/nfs4state.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@
6767

6868
#define OPENOWNER_POOL_SIZE 8
6969

70+
static void nfs4_state_start_reclaim_reboot(struct nfs_client *clp);
71+
7072
const nfs4_stateid zero_stateid = {
7173
{ .data = { 0 } },
7274
.type = NFS4_SPECIAL_STATEID_TYPE,
@@ -330,6 +332,8 @@ int nfs41_init_clientid(struct nfs_client *clp, const struct cred *cred)
330332
status = nfs4_proc_create_session(clp, cred);
331333
if (status != 0)
332334
goto out;
335+
if (!(clp->cl_exchange_flags & EXCHGID4_FLAG_CONFIRMED_R))
336+
nfs4_state_start_reclaim_reboot(clp);
333337
nfs41_finish_session_reset(clp);
334338
nfs_mark_client_ready(clp, NFS_CS_READY);
335339
out:

0 commit comments

Comments
 (0)