]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: queue: decrement the nbpend and totpend counters outside of the lock
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Oct 2020 10:01:28 +0000 (12:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Oct 2020 15:32:28 +0000 (17:32 +0200)
commit96bca33d7569b64e9b977f7a17e2b21237679e0f
treecd0a2dd197052df893f4d4763ad655435778c099
parent56c1cfb179d63f61ee54cd7fd26c22d44e1bc08d
OPTIM: queue: decrement the nbpend and totpend counters outside of the lock

We don't need to do that inside the lock. However since the operation
used to be done in deep functions, we have to make it resurface closer
to visible parts. It remains reasonably self-contained in queue.c so
that's not that big of a deal. Some places (redistribute) could benefit
from a single operation for all counts at once. Others like
pendconn_process_next_strm() are still called with both locks held but
now it will be possible to change this.
src/queue.c