Skip to content

Commit 32aaa62

Browse files
author
J. Bruce Fields
committed
nfsd4: use session limits to release send buffer reservation
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 <[email protected]>
1 parent 47ee529 commit 32aaa62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/nfsd/nfs4state.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2290,6 +2290,7 @@ nfsd4_sequence(struct svc_rqst *rqstp,
22902290
nfserr_rep_too_big;
22912291
if (xdr_restrict_buflen(xdr, buflen - 2 * RPC_MAX_AUTH_SIZE))
22922292
goto out_put_session;
2293+
svc_reserve(rqstp, buflen);
22932294

22942295
status = nfs_ok;
22952296
/* Success! bump slot seqid */

0 commit comments

Comments
 (0)