Revision 16b34aa44b257155d9392a19e08e4ce139bc2789 authored by Ronnie Sahlberg on 08 March 2019, 02:58:21 UTC, committed by Steve French on 15 March 2019, 00:32:35 UTC
Reserve the last MAX_COMPOUND credits for any request asking for >1 credit.
This is to prevent future compound requests from becoming starved while waiting
for potentially many requests is there is a large number of concurrent
singe-credit requests.

However, we need to protect from servers that are very slow to hand out
new credits on new sessions so we only do this IFF there are 2*MAX_COMPOUND
(arbitrary) credits already in flight.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
1 parent b227d21
History
File Mode Size
auth_gss
xprtrdma
Kconfig -rw-r--r-- 2.4 KB
Makefile -rw-r--r-- 628 bytes
addr.c -rw-r--r-- 8.7 KB
auth.c -rw-r--r-- 21.7 KB
auth_null.c -rw-r--r-- 2.7 KB
auth_unix.c -rw-r--r-- 5.2 KB
backchannel_rqst.c -rw-r--r-- 10.9 KB
cache.c -rw-r--r-- 45.2 KB
clnt.c -rw-r--r-- 69.4 KB
debugfs.c -rw-r--r-- 7.7 KB
netns.h -rw-r--r-- 976 bytes
rpc_pipe.c -rw-r--r-- 35.5 KB
rpcb_clnt.c -rw-r--r-- 30.3 KB
sched.c -rw-r--r-- 31.5 KB
socklib.c -rw-r--r-- 4.5 KB
stats.c -rw-r--r-- 8.3 KB
sunrpc.h -rw-r--r-- 1.9 KB
sunrpc_syms.c -rw-r--r-- 2.8 KB
svc.c -rw-r--r-- 38.1 KB
svc_xprt.c -rw-r--r-- 37.8 KB
svcauth.c -rw-r--r-- 4.5 KB
svcauth_unix.c -rw-r--r-- 21.3 KB
svcsock.c -rw-r--r-- 38.4 KB
sysctl.c -rw-r--r-- 3.5 KB
timer.c -rw-r--r-- 2.9 KB
xdr.c -rw-r--r-- 41.7 KB
xprt.c -rw-r--r-- 49.2 KB
xprtmultipath.c -rw-r--r-- 12.2 KB
xprtsock.c -rw-r--r-- 83.3 KB

back to top