]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: pools: unify pool_refill_alloc() across all models
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Apr 2021 16:13:13 +0000 (18:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 Apr 2021 13:24:33 +0000 (15:24 +0200)
commiteb3cc2962239cd86f1ac3344e897d617ef837caf
tree83aa79837464d30c63ffd70fb401893a528ee890
parent64383b81818c7f6228c45b80f126abeb90ba5712
MEDIUM: pools: unify pool_refill_alloc() across all models

Now we don't loop anymore trying to refill multiple items at once, and
an allocated object is directly returned to the requester instead of
being stored into the shared pool. This has multiple benefits. The
first one is that no locking is needed anymore on the allocation path
and the second one is that the loop will no longer cause latency spikes.
src/pool.c