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
test
.gitignore -rw-r--r-- 66 bytes
Makefile -rw-r--r-- 5.1 KB
algos.c -rw-r--r-- 6.4 KB
altivec.uc -rw-r--r-- 3.3 KB
avx2.c -rw-r--r-- 17.1 KB
avx512.c -rw-r--r-- 18.1 KB
int.uc -rw-r--r-- 3.7 KB
mktables.c -rw-r--r-- 4.0 KB
mmx.c -rw-r--r-- 3.9 KB
neon.c -rw-r--r-- 2.1 KB
neon.uc -rw-r--r-- 3.8 KB
recov.c -rw-r--r-- 3.6 KB
recov_avx2.c -rw-r--r-- 9.0 KB
recov_avx512.c -rw-r--r-- 9.5 KB
recov_neon.c -rw-r--r-- 2.7 KB
recov_neon_inner.c -rw-r--r-- 2.4 KB
recov_s390xc.c -rw-r--r-- 2.7 KB
recov_ssse3.c -rw-r--r-- 9.2 KB
s390vx.uc -rw-r--r-- 3.8 KB
sse1.c -rw-r--r-- 4.9 KB
sse2.c -rw-r--r-- 16.1 KB
unroll.awk -rw-r--r-- 424 bytes
vpermxor.uc -rw-r--r-- 2.7 KB
x86.h -rw-r--r-- 2.4 KB

back to top