Skip to content

Commit

Permalink
nfsd4: use session limits to release send buffer reservation
Browse files Browse the repository at this point in the history
Once we know the limits the session places on the size of the rpc, we
can also use that information to release any unnecessary reserved reply
buffer space.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
J. Bruce Fields committed May 30, 2014
1 parent 47ee529 commit 32aaa62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -2290,6 +2290,7 @@ nfsd4_sequence(struct svc_rqst *rqstp,
nfserr_rep_too_big;
if (xdr_restrict_buflen(xdr, buflen - 2 * RPC_MAX_AUTH_SIZE))
goto out_put_session;
svc_reserve(rqstp, buflen);

status = nfs_ok;
/* Success! bump slot seqid */
Expand Down

0 comments on commit 32aaa62

Please sign in to comment.