diff options
author | Mike Sager <sager@netapp.com> | 2009-12-17 12:06:26 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-02-10 08:30:54 -0500 |
commit | 8e0d46e13833b06832395e7eacccae8af8743461 (patch) | |
tree | 8670415c7be9a3d24e25c566b7629823cd0a38c2 /fs/nfs/nfs4proc.c | |
parent | 5a51f13adf7909caec2f8182767485c30e21364e (diff) |
nfs41: Adjust max cache response size value
For the CREATE_SESSION attribute ca_maxresponsesize_cached, calculate
the value based on the rpc reply header size plus the maximum nfs compound
reply size.
Signed-off-by: Mike Sager <sager@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4proc.c')
-rw-r--r-- | fs/nfs/nfs4proc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 8d0c3a977c36..b829118c7e04 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -4805,16 +4805,14 @@ static void nfs4_init_channel_attrs(struct nfs41_create_session_args *args) | |||
4805 | args->fc_attrs.headerpadsz = 0; | 4805 | args->fc_attrs.headerpadsz = 0; |
4806 | args->fc_attrs.max_rqst_sz = mxrqst_sz; | 4806 | args->fc_attrs.max_rqst_sz = mxrqst_sz; |
4807 | args->fc_attrs.max_resp_sz = mxresp_sz; | 4807 | args->fc_attrs.max_resp_sz = mxresp_sz; |
4808 | args->fc_attrs.max_resp_sz_cached = mxresp_sz; | ||
4809 | args->fc_attrs.max_ops = NFS4_MAX_OPS; | 4808 | args->fc_attrs.max_ops = NFS4_MAX_OPS; |
4810 | args->fc_attrs.max_reqs = session->clp->cl_rpcclient->cl_xprt->max_reqs; | 4809 | args->fc_attrs.max_reqs = session->clp->cl_rpcclient->cl_xprt->max_reqs; |
4811 | 4810 | ||
4812 | dprintk("%s: Fore Channel : max_rqst_sz=%u max_resp_sz=%u " | 4811 | dprintk("%s: Fore Channel : max_rqst_sz=%u max_resp_sz=%u " |
4813 | "max_resp_sz_cached=%u max_ops=%u max_reqs=%u\n", | 4812 | "max_ops=%u max_reqs=%u\n", |
4814 | __func__, | 4813 | __func__, |
4815 | args->fc_attrs.max_rqst_sz, args->fc_attrs.max_resp_sz, | 4814 | args->fc_attrs.max_rqst_sz, args->fc_attrs.max_resp_sz, |
4816 | args->fc_attrs.max_resp_sz_cached, args->fc_attrs.max_ops, | 4815 | args->fc_attrs.max_ops, args->fc_attrs.max_reqs); |
4817 | args->fc_attrs.max_reqs); | ||
4818 | 4816 | ||
4819 | /* Back channel attributes */ | 4817 | /* Back channel attributes */ |
4820 | args->bc_attrs.headerpadsz = 0; | 4818 | args->bc_attrs.headerpadsz = 0; |