]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: dynbuf: remove last usages of b_alloc_margin()
authorWilly Tarreau <w@1wt.eu>
Mon, 22 Mar 2021 13:44:31 +0000 (14:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 22 Mar 2021 15:27:59 +0000 (16:27 +0100)
commitd68d4f10021645cad95c4838964ec95185a352bb
tree2fb700218e643b086fb9940c34064df708638f86
parent0f495b3d87b063a98cb8ddc846d6510703e1d0ea
MEDIUM: dynbuf: remove last usages of b_alloc_margin()

The function's purpose used to be to fail a buffer allocation if that
allocation wouldn't result in leaving some buffers available. Thus,
some allocations could succeed and others fail for the sole purpose of
trying to provide 2 buffers at once to process_stream(). But things
have changed a lot with 1.7 breaking the promise that process_stream()
would always succeed with only two buffers, and later the thread-local
pool caches that keep certain buffers available that are not accounted
for in the global pool so that local allocators cannot guess anything
from the number of currently available pools.

Let's just replace all last uses of b_alloc_margin() with b_alloc() once
for all.
src/applet.c
src/check.c
src/flt_spoe.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/stream.c