nfsd: add an operation for unhashing a stateowner
authorJeff Layton <jlayton@primarydata.com>
Wed, 30 Jul 2014 01:34:29 +0000 (21:34 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 31 Jul 2014 18:20:20 +0000 (14:20 -0400)
commit8f4b54c53f0d9c67cf922c8a780b8d9075e20e07
treeea44df538656d87ae1a24ba10c3f9e437caa4d92
parent5db1c03feb00a72846927172d81744790e601b97
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>
fs/nfsd/nfs4state.c
fs/nfsd/state.h