summaryrefslogtreecommitdiff
path: root/fs/nfsd/state.h
diff options
context:
space:
mode:
authorJeff Layton <jlayton@primarydata.com>2014-07-29 21:34:29 -0400
committerJ. Bruce Fields <bfields@redhat.com>2014-07-31 14:20:20 -0400
commit8f4b54c53f0d9c67cf922c8a780b8d9075e20e07 (patch)
treeea44df538656d87ae1a24ba10c3f9e437caa4d92 /fs/nfsd/state.h
parent5db1c03feb00a72846927172d81744790e601b97 (diff)
nfsd: add an operation for unhashing a stateowner
Allow stateowners to be unhashed and destroyed when the last reference is put. The unhashing must be idempotent. In a future patch, we'll add some locking around it, but for now it's only protected by the client_mutex. Signed-off-by: Jeff Layton <jlayton@primarydata.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r--fs/nfsd/state.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h
index 9cba295812f6..232246039db0 100644
--- a/fs/nfsd/state.h
+++ b/fs/nfsd/state.h
@@ -335,6 +335,7 @@ struct nfs4_replay {
struct nfs4_stateowner;
struct nfs4_stateowner_operations {
+ void (*so_unhash)(struct nfs4_stateowner *);
void (*so_free)(struct nfs4_stateowner *);
};