linux_dsm_epyc7002/net/sunrpc
J. Bruce Fields d10f27a750 svcrpc: fix svc_xprt_enqueue/svc_recv busy-looping
The rpc server tries to ensure that there will be room to send a reply
before it receives a request.

It does this by tracking, in xpt_reserved, an upper bound on the total
size of the replies that is has already committed to for the socket.

Currently it is adding in the estimate for a new reply *before* it
checks whether there is space available.  If it finds that there is not
space, it then subtracts the estimate back out.

This may lead the subsequent svc_xprt_enqueue to decide that there is
space after all.

The results is a svc_recv() that will repeatedly return -EAGAIN, causing
server threads to loop without doing any actual work.

Cc: stable@vger.kernel.org
Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Tested-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2012-08-20 18:39:19 -04:00
..
auth_gss
xprtrdma
addr.c
auth_generic.c
auth_null.c
auth_unix.c
auth.c
backchannel_rqst.c
bc_svc.c
cache.c
clnt.c
Kconfig
Makefile
netns.h
rpc_pipe.c
rpcb_clnt.c
sched.c Merge branch 'akpm' (Andrew's patch-bomb) 2012-07-31 19:25:39 -07:00
socklib.c
stats.c
sunrpc_syms.c
sunrpc.h
svc_xprt.c svcrpc: fix svc_xprt_enqueue/svc_recv busy-looping 2012-08-20 18:39:19 -04:00
svc.c
svcauth_unix.c
svcauth.c
svcsock.c svcrpc: fix BUG() in svc_tcp_clear_pages 2012-08-20 18:38:44 -04:00
sysctl.c
timer.c
xdr.c
xprt.c
xprtsock.c Merge branch 'akpm' (Andrew's patch-bomb) 2012-07-31 19:25:39 -07:00