]> err.no Git - linux-2.6/commit
NLM: Shrink the maximum request size of NLM4 requests
authorChuck Lever <chuck.lever@oracle.com>
Thu, 29 Mar 2007 20:47:47 +0000 (16:47 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 1 May 2007 05:17:09 +0000 (22:17 -0700)
commit511d2e8855a065c8251d0c140ebc353854f1929e
treed01c1327f1558ce46ee49dd1ba16da79e7720147
parentca52fec152282ef73e5e882b847b36b1febbb1c6
NLM: Shrink the maximum request size of NLM4 requests

NLM version 4 requests estimate the call and reply header sizes rather
conservatively, using the very maximum size allowed in the protocol even
though Linux always uses only a small fraction of the allowable space.

Reduce the size of caller and lock arguments to conserve RPC buffer space
while XDR encoding NLM4 arguments.  Add compile-time checks to ensure the
hostname string won't overflow NLM protocol maximums.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/lockd/xdr.c
fs/lockd/xdr4.c
include/linux/lockd/lockd.h