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
Makefile -rw-r--r-- 781 bytes
arraymap.c -rw-r--r-- 20.8 KB
bpf_lru_list.c -rw-r--r-- 17.5 KB
bpf_lru_list.h -rw-r--r-- 2.2 KB
btf.c -rw-r--r-- 77.6 KB
cgroup.c -rw-r--r-- 19.9 KB
core.c -rw-r--r-- 54.2 KB
cpumap.c -rw-r--r-- 18.9 KB
devmap.c -rw-r--r-- 15.4 KB
disasm.c -rw-r--r-- 7.7 KB
disasm.h -rw-r--r-- 1.4 KB
hashtab.c -rw-r--r-- 38.2 KB
helpers.c -rw-r--r-- 8.7 KB
inode.c -rw-r--r-- 13.5 KB
local_storage.c -rw-r--r-- 14.1 KB
lpm_trie.c -rw-r--r-- 21.2 KB
map_in_map.c -rw-r--r-- 3.2 KB
map_in_map.h -rw-r--r-- 696 bytes
offload.c -rw-r--r-- 16.3 KB
percpu_freelist.c -rw-r--r-- 2.7 KB
percpu_freelist.h -rw-r--r-- 1.2 KB
queue_stack_maps.c -rw-r--r-- 6.8 KB
reuseport_array.c -rw-r--r-- 8.6 KB
stackmap.c -rw-r--r-- 16.7 KB
syscall.c -rw-r--r-- 63.6 KB
tnum.c -rw-r--r-- 4.1 KB
verifier.c -rw-r--r-- 227.4 KB
xskmap.c -rw-r--r-- 4.8 KB

back to top