]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rpc: let xdr layer allocate gssproxy receieve pages
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 23 Aug 2013 21:26:28 +0000 (17:26 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 6 Sep 2013 15:45:58 +0000 (11:45 -0400)
commitd4a516560fc96a9d486a9939bcb567e3fdce8f49
treeb7cf4d198b901d81b8403667f1bda1f2329b48c7
parent9dfd87da1aeb0fd364167ad199f40fe96a6a87be
rpc: let xdr layer allocate gssproxy receieve pages

In theory the linux cred in a gssproxy reply can include up to
NGROUPS_MAX data, 256K of data.  In the common case we expect it to be
shorter.  So do as the nfsv3 ACL code does and let the xdr code allocate
the pages as they come in, instead of allocating a lot of pages that
won't typically be used.

Tested-by: Simo Sorce <simo@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/auth_gss/gss_rpc_upcall.c