diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-07-29 21:34:29 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-07-31 14:20:20 -0400 |
commit | 8f4b54c53f0d9c67cf922c8a780b8d9075e20e07 (patch) | |
tree | ea44df538656d87ae1a24ba10c3f9e437caa4d92 /fs/nfsd/state.h | |
parent | 5db1c03feb00a72846927172d81744790e601b97 (diff) | |
download | op-kernel-dev-8f4b54c53f0d9c67cf922c8a780b8d9075e20e07.zip op-kernel-dev-8f4b54c53f0d9c67cf922c8a780b8d9075e20e07.tar.gz |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index 9cba295..2322460 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 *); }; |