nfsd41: use sv_max_mesg for forechannel max sizes
authorAndy Adamson <andros@netapp.com>
Thu, 24 Sep 2009 01:32:21 +0000 (21:32 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Mon, 28 Sep 2009 16:40:15 +0000 (12:40 -0400)
commitddc04fd4d5163aee9ebdb38a56c365b602e2b7b7
tree6cb3c4abed9f0cbefbd2086c6e946ac312684f61
parentf39bde24b275ddc45df1ed835725b609e178c7a0
nfsd41: use sv_max_mesg for forechannel max sizes

ca_maxresponsesize and ca_maxrequest size include the RPC header.

sv_max_mesg is sv_max_payolad plus a page for overhead and is used in
svc_init_buffer to allocate server buffer space for both the request and reply.
Note that this means we can service an RPC compound that requires
ca_maxrequestsize (MAXWRITE) or ca_max_responsesize (MAXREAD) but that we do
not support an RPC compound that requires both ca_maxrequestsize and
ca_maxresponsesize.

Signed-off-by: Andy Adamson <andros@netapp.com>
[bfields@citi.umich.edu: more documentation updates]
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Documentation/filesystems/nfs41-server.txt
fs/nfsd/nfs4state.c