diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2010-03-08 12:37:27 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2010-04-22 11:34:02 -0400 |
commit | 2bf23875f55af6038a5d1c164a52cec4c24609ba (patch) | |
tree | b001fc6594833c6554c11836d23958c7c7049e35 /fs/nfsd/state.h | |
parent | b12a05cbdfdf7e4d8cbe8fa78e995f971420086b (diff) |
nfsd4: rearrange cb data structures
Mainly I just want to separate the arguments used for setting up the tcp
client from the rest.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r-- | fs/nfsd/state.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index cef20abf330c..cf43812e6da5 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h | |||
@@ -107,9 +107,7 @@ struct nfs4_cb_conn { | |||
107 | u32 cb_prog; | 107 | u32 cb_prog; |
108 | u32 cb_minorversion; | 108 | u32 cb_minorversion; |
109 | u32 cb_ident; /* minorversion 0 only */ | 109 | u32 cb_ident; /* minorversion 0 only */ |
110 | /* RPC client info */ | 110 | struct svc_xprt *cb_xprt; /* minorversion 1 only */ |
111 | atomic_t cb_set; /* successful CB_NULL call */ | ||
112 | struct rpc_clnt * cb_client; | ||
113 | }; | 111 | }; |
114 | 112 | ||
115 | /* Maximum number of slots per session. 160 is useful for long haul TCP */ | 113 | /* Maximum number of slots per session. 160 is useful for long haul TCP */ |
@@ -223,9 +221,13 @@ struct nfs4_client { | |||
223 | struct svc_cred cl_cred; /* setclientid principal */ | 221 | struct svc_cred cl_cred; /* setclientid principal */ |
224 | clientid_t cl_clientid; /* generated by server */ | 222 | clientid_t cl_clientid; /* generated by server */ |
225 | nfs4_verifier cl_confirm; /* generated by server */ | 223 | nfs4_verifier cl_confirm; /* generated by server */ |
226 | struct nfs4_cb_conn cl_cb_conn; /* callback info */ | ||
227 | u32 cl_firststate; /* recovery dir creation */ | 224 | u32 cl_firststate; /* recovery dir creation */ |
228 | 225 | ||
226 | /* for v4.0 and v4.1 callbacks: */ | ||
227 | struct nfs4_cb_conn cl_cb_conn; | ||
228 | struct rpc_clnt *cl_cb_client; | ||
229 | atomic_t cl_cb_set; | ||
230 | |||
229 | /* for nfs41 */ | 231 | /* for nfs41 */ |
230 | struct list_head cl_sessions; | 232 | struct list_head cl_sessions; |
231 | struct nfsd4_clid_slot cl_cs_slot; /* create_session slot */ | 233 | struct nfsd4_clid_slot cl_cs_slot; /* create_session slot */ |
@@ -236,7 +238,6 @@ struct nfs4_client { | |||
236 | /* We currently support a single back channel with a single slot */ | 238 | /* We currently support a single back channel with a single slot */ |
237 | unsigned long cl_cb_slot_busy; | 239 | unsigned long cl_cb_slot_busy; |
238 | u32 cl_cb_seq_nr; | 240 | u32 cl_cb_seq_nr; |
239 | struct svc_xprt *cl_cb_xprt; /* 4.1 callback transport */ | ||
240 | struct rpc_wait_queue cl_cb_waitq; /* backchannel callers may */ | 241 | struct rpc_wait_queue cl_cb_waitq; /* backchannel callers may */ |
241 | /* wait here for slots */ | 242 | /* wait here for slots */ |
242 | }; | 243 | }; |