summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-05-25 16:02:15 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-05-25 16:17:13 -0400
commitbe0bfed002e0c64a91dacc42a4dab6e883e6bc7e (patch)
tree74a9169b134718bcf897a39440683a950d10293d /fs/nfs
parent2a6ee6aa2f6dfc47fce8380ec9e31601c96a693e (diff)
downloadop-kernel-dev-be0bfed002e0c64a91dacc42a4dab6e883e6bc7e.zip
op-kernel-dev-be0bfed002e0c64a91dacc42a4dab6e883e6bc7e.tar.gz
NFSv4: When purging the lease, we must clear NFS4CLNT_LEASE_CONFIRM
Otherwise we can end up not sending a new exchange-id/setclientid Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs4state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index 758b9a8..604c600 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -1647,6 +1647,7 @@ static void nfs4_reset_all_state(struct nfs_client *clp)
{
if (test_and_set_bit(NFS4CLNT_LEASE_EXPIRED, &clp->cl_state) == 0) {
set_bit(NFS4CLNT_PURGE_STATE, &clp->cl_state);
+ clear_bit(NFS4CLNT_LEASE_CONFIRM, &clp->cl_state);
nfs4_state_start_reclaim_nograce(clp);
nfs4_schedule_state_manager(clp);
}
OpenPOWER on IntegriCloud