nfsd4: introduce nfs4_client.cl_refcount
authorBenny Halevy <bhalevy@panasas.com>
Tue, 11 May 2010 21:13:29 +0000 (00:13 +0300)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Thu, 13 May 2010 15:47:03 +0000 (11:47 -0400)
commit46583e2597af649f134462d2f2c1be5e6689198d
tree4d760a1f60db3f057f8f3ea1549a8422c9eff031
parent84d38ac9abf0a5bc0044c9363acaad55a9a4be0d
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>
fs/nfsd/nfs4state.c
fs/nfsd/state.h