mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 21:45:45 +02:00
NFSv4.1: We must always send RECLAIM_COMPLETE after a reboot
[ Upstream commite59679f2b7] 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:fce5c838e1("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>
This commit is contained in:
parent
10c554d722
commit
f0f1c74fa6
|
|
@ -1777,6 +1777,7 @@ static void nfs4_state_mark_reclaim_helper(struct nfs_client *clp,
|
||||||
|
|
||||||
static void nfs4_state_start_reclaim_reboot(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 */
|
/* Mark all delegations for reclaim */
|
||||||
nfs_delegation_mark_reclaim(clp);
|
nfs_delegation_mark_reclaim(clp);
|
||||||
nfs4_state_mark_reclaim_helper(clp, nfs4_state_mark_reclaim_reboot);
|
nfs4_state_mark_reclaim_helper(clp, nfs4_state_mark_reclaim_reboot);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user