diff options
author | 2014-07-24 23:59:33 -0400 | |
---|---|---|
committer | 2014-07-29 16:10:20 -0400 | |
commit | 518776800c094a518ae6d303660b57f1400eb1eb (patch) | |
tree | 5b61d53a0ba2ff0a24cc47dc2a0cc5bac151b654 /net/sunrpc/svc_xprt.c | |
parent | SUNRPC: svc_tcp_write_space: don't clear SOCK_NOSPACE prematurely (diff) | |
download | linux-518776800c094a518ae6d303660b57f1400eb1eb.tar.gz linux-518776800c094a518ae6d303660b57f1400eb1eb.tar.bz2 linux-518776800c094a518ae6d303660b57f1400eb1eb.zip |
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 9cfa391e2bd0..6666c6745858 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); } } |