]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Wed, 28 May 2014 18:52:54 +0000 (14:52 -0400)
commit87961a68136d4be3d60d75d2327b941d639d769e
treef76a50de09f9f3a65c27ca3a0cdb55dbfc7c3a5f
parent916321efa8d7ec8eb1e7665f7219a553cb01588a
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