summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/state.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2014-06-30 17:48:42 +0200
committerJ. Bruce Fields <bfields@redhat.com>2014-07-10 02:55:00 +0200
commitd4e19e70276a320bbc01b76fb50b5c4962ff523a (patch)
tree094dfc4d784f9b53dff40de5bc3ecddfd40bb6fe /fs/nfsd/state.h
parentnfsd: clean up nfsd4_release_lockowner (diff)
downloadlinux-d4e19e70276a320bbc01b76fb50b5c4962ff523a.tar.xz
linux-d4e19e70276a320bbc01b76fb50b5c4962ff523a.zip
nfsd: Don't get a session reference without a client reference
If the client were to disappear from underneath us while we're holding a session reference, things would be bad. This cleanup helps ensure that it cannot, which will be a possibility when the client_mutex is removed. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r--fs/nfsd/state.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h
index ab937b5f10ab..ff160e89701a 100644
--- a/fs/nfsd/state.h
+++ b/fs/nfsd/state.h
@@ -212,8 +212,6 @@ struct nfsd4_session {
struct nfsd4_slot *se_slots[]; /* forward channel slots */
};
-extern void nfsd4_put_session(struct nfsd4_session *ses);
-
/* formatted contents of nfs4_sessionid */
struct nfsd4_sessionid {
clientid_t clientid;