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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Oct 2013 16:41:02 +0000 (09:41 -0700)
commit4179ebecdc904aef8625afc1c227a2b591c5ed44
treeeca16944d838df8cec12d1d6f879ef8a06a4fe44
parent42c446598e47a18a48da6c8c2eab6ea73da881ee
rpc: let xdr layer allocate gssproxy receieve pages

commit d4a516560fc96a9d486a9939bcb567e3fdce8f49 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/auth_gss/gss_rpc_upcall.c