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)
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

Simple merge
Simple merge