aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/state.h
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@panasas.com>2010-05-11 17:13:29 -0400
committerJ. Bruce Fields <bfields@citi.umich.edu>2010-05-13 11:47:03 -0400
commit46583e2597af649f134462d2f2c1be5e6689198d (patch)
tree4d760a1f60db3f057f8f3ea1549a8422c9eff031 /fs/nfsd/state.h
parent84d38ac9abf0a5bc0044c9363acaad55a9a4be0d (diff)
nfsd4: introduce nfs4_client.cl_refcount
Currently just initialize the cl_refcount to 1 and decrement in expire_client(), conditionally freeing the client when the refcount reaches 0. To be used later by nfsv4.1 compounds to keep the client from timing out while in use. Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r--fs/nfsd/state.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h
index 98836fd87f69..ee42a0beecfa 100644
--- a/fs/nfsd/state.h
+++ b/fs/nfsd/state.h
@@ -233,6 +233,8 @@ struct nfs4_client {
233 struct nfsd4_clid_slot cl_cs_slot; /* create_session slot */ 233 struct nfsd4_clid_slot cl_cs_slot; /* create_session slot */
234 u32 cl_exchange_flags; 234 u32 cl_exchange_flags;
235 struct nfs4_sessionid cl_sessionid; 235 struct nfs4_sessionid cl_sessionid;
236 /* number of rpc's in progress over an associated session: */
237 atomic_t cl_refcount;
236 238
237 /* for nfs41 callbacks */ 239 /* for nfs41 callbacks */
238 /* We currently support a single back channel with a single slot */ 240 /* We currently support a single back channel with a single slot */