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) | |
download | kernel_samsung_smdk4412-2bf23875f55af6038a5d1c164a52cec4c24609ba.zip kernel_samsung_smdk4412-2bf23875f55af6038a5d1c164a52cec4c24609ba.tar.gz kernel_samsung_smdk4412-2bf23875f55af6038a5d1c164a52cec4c24609ba.tar.bz2 |
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 cef20ab..cf43812 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -107,9 +107,7 @@ struct nfs4_cb_conn { u32 cb_prog; u32 cb_minorversion; u32 cb_ident; /* minorversion 0 only */ - /* RPC client info */ - atomic_t cb_set; /* successful CB_NULL call */ - struct rpc_clnt * cb_client; + struct svc_xprt *cb_xprt; /* minorversion 1 only */ }; /* Maximum number of slots per session. 160 is useful for long haul TCP */ @@ -223,9 +221,13 @@ struct nfs4_client { struct svc_cred cl_cred; /* setclientid principal */ clientid_t cl_clientid; /* generated by server */ nfs4_verifier cl_confirm; /* generated by server */ - struct nfs4_cb_conn cl_cb_conn; /* callback info */ u32 cl_firststate; /* recovery dir creation */ + /* for v4.0 and v4.1 callbacks: */ + struct nfs4_cb_conn cl_cb_conn; + struct rpc_clnt *cl_cb_client; + atomic_t cl_cb_set; + /* for nfs41 */ struct list_head cl_sessions; struct nfsd4_clid_slot cl_cs_slot; /* create_session slot */ @@ -236,7 +238,6 @@ struct nfs4_client { /* We currently support a single back channel with a single slot */ unsigned long cl_cb_slot_busy; u32 cl_cb_seq_nr; - struct svc_xprt *cl_cb_xprt; /* 4.1 callback transport */ struct rpc_wait_queue cl_cb_waitq; /* backchannel callers may */ /* wait here for slots */ }; |