aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2014-03-20 20:47:41 -0400
committerJ. Bruce Fields <bfields@redhat.com>2014-05-30 17:32:02 -0400
commit32aaa62ede574ff99b020b4ee3ff6f9cfc9f0099 (patch)
tree6ad708054e21e60d230f26302f0a69ac355b5456 /fs/nfsd
parent47ee52986472dba068e8223cbaf1b65d74238781 (diff)
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 <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 612b85ac414b..62b882dc48ec 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -2290,6 +2290,7 @@ nfsd4_sequence(struct svc_rqst *rqstp,
2290 nfserr_rep_too_big; 2290 nfserr_rep_too_big;
2291 if (xdr_restrict_buflen(xdr, buflen - 2 * RPC_MAX_AUTH_SIZE)) 2291 if (xdr_restrict_buflen(xdr, buflen - 2 * RPC_MAX_AUTH_SIZE))
2292 goto out_put_session; 2292 goto out_put_session;
2293 svc_reserve(rqstp, buflen);
2293 2294
2294 status = nfs_ok; 2295 status = nfs_ok;
2295 /* Success! bump slot seqid */ 2296 /* Success! bump slot seqid */