diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-07-25 03:59:33 (GMT) |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-07-29 20:10:20 (GMT) |
commit | 518776800c094a518ae6d303660b57f1400eb1eb (patch) | |
tree | 5b61d53a0ba2ff0a24cc47dc2a0cc5bac151b654 /net/sunrpc/svc_xprt.c | |
parent | c7fb3f0631b8d66b90e0642a95b948febb3f3cee (diff) | |
download | linux-518776800c094a518ae6d303660b57f1400eb1eb.tar.xz |
SUNRPC: Allow svc_reserve() to notify TCP socket that space has been freed
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/svc_xprt.c')
-rw-r--r-- | net/sunrpc/svc_xprt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index 9cfa391..6666c67 100644 --- a/net/sunrpc/svc_xprt.c +++ b/net/sunrpc/svc_xprt.c @@ -448,6 +448,8 @@ void svc_reserve(struct svc_rqst *rqstp, int space) atomic_sub((rqstp->rq_reserved - space), &xprt->xpt_reserved); rqstp->rq_reserved = space; + if (xprt->xpt_ops->xpo_adjust_wspace) + xprt->xpt_ops->xpo_adjust_wspace(xprt); svc_xprt_enqueue(xprt); } } |