]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: use MT_LIST_ADDQ() to add connections to idle lists
authorWilly Tarreau <w@1wt.eu>
Fri, 10 Jul 2020 06:28:20 +0000 (08:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Jul 2020 06:52:13 +0000 (08:52 +0200)
commita9d7b76f6a5824fd2d36ce11fa0a1a1c504f1104
treee840173fe16ad70baa5d0c21e32502bcf1b55155
parent86891278164d84797406ddcf67c0e11c8b433414
MINOR: connection: use MT_LIST_ADDQ() to add connections to idle lists

When a connection is added to an idle list, it's already detached and
cannot be seen by two threads at once, so there's no point using
TRY_ADDQ, there will never be any conflict. Let's just use the cheaper
ADDQ.
include/haproxy/server.h
src/backend.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/ssl_sock.c