Skip to content

Commit e59679f

Browse files
Trond Myklebustamschuma-ntap
authored andcommitted
NFSv4.1: We must always send RECLAIM_COMPLETE after a reboot
Currently, we are only guaranteed to send RECLAIM_COMPLETE if we have open state to recover. Fix the client to always send RECLAIM_COMPLETE after setting up the lease. 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 5d917cb commit e59679f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/nfs/nfs4state.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,6 +1786,7 @@ static void nfs4_state_mark_reclaim_helper(struct nfs_client *clp,
17861786

17871787
static void nfs4_state_start_reclaim_reboot(struct nfs_client *clp)
17881788
{
1789+
set_bit(NFS4CLNT_RECLAIM_REBOOT, &clp->cl_state);
17891790
/* Mark all delegations for reclaim */
17901791
nfs_delegation_mark_reclaim(clp);
17911792
nfs4_state_mark_reclaim_helper(clp, nfs4_state_mark_reclaim_reboot);

0 commit comments

Comments
 (0)