nfsd4: adjust buflen to session channel limit
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 13 Mar 2014 01:39:35 +0000 (21:39 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 30 May 2014 21:32:02 +0000 (17:32 -0400)
commit47ee52986472dba068e8223cbaf1b65d74238781
tree4436adf69861759600318696325b8bb9633d4602
parentdb3f58a95beea6752d90fed03f9f198d282a3913
nfsd4: adjust buflen to session channel limit

We can simplify session limit enforcement by restricting the xdr buflen
to the session size.

Also fix a preexisting bug: we should really have been taking into
account the auth-required space when comparing against session limits,
which are limits on the size of the entire rpc reply, including any krb5
overhead.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
fs/nfsd/nfs4xdr.c