Skip to content

Commit

Permalink
nfsd4: purge stable client records with insufficient state
Browse files Browse the repository at this point in the history
To escape having your stable storage record purged at the end of the
grace period, it's not sufficient to simply have performed a
setclientid_confirm; you also need to meet the same requirements as
someone creating a new record: either you should have done an open or
open reclaim (in the 4.0 case) or a reclaim_complete (in the 4.1 case).

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
J. Bruce Fields committed Mar 6, 2012
1 parent 1255a8f commit 393d8ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -4415,7 +4415,9 @@ nfs4_has_reclaimed_state(const char *name, bool use_exchange_id)
struct nfs4_client *clp;

clp = find_confirmed_client_by_str(name, strhashval);
return clp ? 1 : 0;
if (!clp)
return 0;
return clp->cl_firststate;
}

/*
Expand Down

0 comments on commit 393d8ed

Please sign in to comment.