]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: queue: reduce the locked area in pendconn_add()
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Oct 2020 09:31:12 +0000 (11:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Oct 2020 15:32:28 +0000 (17:32 +0200)
commitc7eedf7a5a8992c911c6004fb3983afb45ef428d
tree96b55bcfbc95217a8fbbd9140a77dcae3459692a
parent3e3ae2524d57b1424ae2368bef6cf77a5a79b647
MINOR: queue: reduce the locked area in pendconn_add()

Similarly to previous changes, we know if we're dealing with a server
or proxy lock so let's directly lock at the finest possible places
there. It's worth noting that a part of the operation consisting in
an increment and update of a max could be done outside of the lock
using atomic ops and a CAS.
src/queue.c