]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: dynbuf: make the buffer wait queue per thread
authorWilly Tarreau <w@1wt.eu>
Sat, 20 Feb 2021 10:38:56 +0000 (11:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 20 Feb 2021 11:38:18 +0000 (12:38 +0100)
commite8e5091510f667feeb36f68b8d2f4d9e8cf00dc0
tree75e8a4acee526975e7ea133d1225a86ada9253ec
parent28d7876a0cb0f2e8fa46c216937d361b0d7bcfbc
MINOR: dynbuf: make the buffer wait queue per thread

The buffer wait queue used to be global historically but this doest not
make any sense anymore given that the most common use case is to have
thread-local pools. Thus there's no point waking up waiters of other
threads after releasing an entry, as they won't benefit from it.

Let's move the queue head to the thread_info structure and use
ti->buffer_wq from now on.
include/haproxy/channel.h
include/haproxy/dynbuf.h
include/haproxy/tinfo-t.h
src/check.c
src/dynbuf.c
src/flt_spoe.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/stream.c