diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-10-16 14:44:33 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-11-10 15:47:20 +0100 |
commit | 21c81cb4188d0542e5ea4bde6e6314ccdbb8340d (patch) | |
tree | 73caf8925cd4134f43977b2023f422ce7c232266 | |
parent | 2fa9061208d40477204ec4679331a3920548adb6 (diff) | |
download | linux-stable-21c81cb4188d0542e5ea4bde6e6314ccdbb8340d.tar.gz linux-stable-21c81cb4188d0542e5ea4bde6e6314ccdbb8340d.tar.bz2 linux-stable-21c81cb4188d0542e5ea4bde6e6314ccdbb8340d.zip |
NFSv4.1: We must always send RECLAIM_COMPLETE after a reboot
[ Upstream commit e59679f2b7e522ecad99974e5636291ffd47c184 ]
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: fce5c838e133 ("nfs41: RECLAIM_COMPLETE functionality")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | fs/nfs/nfs4state.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 1cd2350816e2..0c124465d4e5 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c @@ -1674,6 +1674,7 @@ static void nfs4_state_mark_reclaim_helper(struct nfs_client *clp, static void nfs4_state_start_reclaim_reboot(struct nfs_client *clp) { + set_bit(NFS4CLNT_RECLAIM_REBOOT, &clp->cl_state); /* Mark all delegations for reclaim */ nfs_delegation_mark_reclaim(clp); nfs4_state_mark_reclaim_helper(clp, nfs4_state_mark_reclaim_reboot); |