aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfsd/state.h
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2009-09-15 18:07:35 -0400
committerJ. Bruce Fields <bfields@citi.umich.edu>2009-09-15 20:49:34 -0400
commit80fc015bdfe1f5b870c1e1ee02d78e709523fee7 (patch)
treef56fd466add111a4c6bcc29d127325e3e77b4669 /include/linux/nfsd/state.h
parent29ab23cc5d351658d01a4327d55e9106a73fd04f (diff)
nfsd4: use common rpc_cred for all callbacks
Callbacks are always made using the machine's identity, so we can use a single auth_generic credential shared among callbacks to all clients and let the rpc code take care of the rest. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'include/linux/nfsd/state.h')
-rw-r--r--include/linux/nfsd/state.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h
index 70ef5f4abbbc..9bf3aa8c5aea 100644
--- a/include/linux/nfsd/state.h
+++ b/include/linux/nfsd/state.h
@@ -89,7 +89,6 @@ struct nfs4_cb_conn {
89 /* RPC client info */ 89 /* RPC client info */
90 atomic_t cb_set; /* successful CB_NULL call */ 90 atomic_t cb_set; /* successful CB_NULL call */
91 struct rpc_clnt * cb_client; 91 struct rpc_clnt * cb_client;
92 struct rpc_cred * cb_cred;
93}; 92};
94 93
95/* Maximum number of slots per session. 160 is useful for long haul TCP */ 94/* Maximum number of slots per session. 160 is useful for long haul TCP */
@@ -362,6 +361,7 @@ extern int nfs4_in_grace(void);
362extern __be32 nfs4_check_open_reclaim(clientid_t *clid); 361extern __be32 nfs4_check_open_reclaim(clientid_t *clid);
363extern void put_nfs4_client(struct nfs4_client *clp); 362extern void put_nfs4_client(struct nfs4_client *clp);
364extern void nfs4_free_stateowner(struct kref *kref); 363extern void nfs4_free_stateowner(struct kref *kref);
364extern int set_callback_cred(void);
365extern void nfsd4_probe_callback(struct nfs4_client *clp); 365extern void nfsd4_probe_callback(struct nfs4_client *clp);
366extern void nfsd4_cb_recall(struct nfs4_delegation *dp); 366extern void nfsd4_cb_recall(struct nfs4_delegation *dp);
367extern void nfs4_put_delegation(struct nfs4_delegation *dp); 367extern void nfs4_put_delegation(struct nfs4_delegation *dp);