linux/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 SUNRPC: Add a missing spin_unlock to gss_mech_list_pseudoflavors 2012-07-17 17:02:57 -04:00
xprtrdma nfs: skip commit in releasepage if we're freeing memory for fs-related reasons 2012-07-30 18:55:59 -04:00
addr.c
auth_generic.c
auth_null.c
auth_unix.c
auth.c SUNRPC: Add rpcauth_list_flavors() 2012-07-16 15:12:15 -04:00
backchannel_rqst.c net: Fix (nearly-)kernel-doc comments for various functions 2012-07-10 23:13:45 -07:00
bc_svc.c
cache.c SUNRPC/cache: fix reporting of expired cache entries in 'content' file. 2012-07-12 11:20:28 -04:00
clnt.c nfs: enable swap on NFS 2012-07-31 18:42:48 -07:00
Kconfig nfs: enable swap on NFS 2012-07-31 18:42:48 -07:00
Makefile
netns.h
rpc_pipe.c rpc_pipefs: allow rpc_purge_list to take a NULL waitq pointer 2012-06-11 17:27:07 -04:00
rpcb_clnt.c SUNRPC: return negative value in case rpcbind client creation error 2012-07-30 20:39:05 -04:00
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 NFS client bugfixes for Linux 3.5 2012-06-15 17:37:23 -07:00
svcauth_unix.c ipv6: add ipv6_addr_hash() helper 2012-07-18 11:28:46 -07:00
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 NFS client updates for Linux 3.6 2012-07-30 19:16:57 -07:00
xprt.c net: Fix (nearly-)kernel-doc comments for various functions 2012-07-10 23:13:45 -07:00
xprtsock.c Merge branch 'akpm' (Andrew's patch-bomb) 2012-07-31 19:25:39 -07:00