summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svc_xprt.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2014-07-25 05:59:33 +0200
committerJ. Bruce Fields <bfields@redhat.com>2014-07-29 22:10:20 +0200
commit518776800c094a518ae6d303660b57f1400eb1eb (patch)
tree5b61d53a0ba2ff0a24cc47dc2a0cc5bac151b654 /net/sunrpc/svc_xprt.c
parentSUNRPC: svc_tcp_write_space: don't clear SOCK_NOSPACE prematurely (diff)
downloadlinux-518776800c094a518ae6d303660b57f1400eb1eb.tar.xz
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.c2
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);
}
}