diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-07-30 03:34:29 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-07-31 20:20:20 +0200 |
commit | 8f4b54c53f0d9c67cf922c8a780b8d9075e20e07 (patch) | |
tree | ea44df538656d87ae1a24ba10c3f9e437caa4d92 /fs/nfsd/state.h | |
parent | nfsd: clean up lockowner refcounting when finding them (diff) | |
download | linux-8f4b54c53f0d9c67cf922c8a780b8d9075e20e07.tar.xz linux-8f4b54c53f0d9c67cf922c8a780b8d9075e20e07.zip |
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 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 *); }; |