]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: shctx: Descend shctx_lock calls into the shctx_row_reserve_hot
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 16 Nov 2023 16:38:23 +0000 (17:38 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 16 Nov 2023 18:35:10 +0000 (19:35 +0100)
commit11df806c88d2a3bb18c2ded9587053e4e29ddde4
tree9d076978fe0f8062fe9d769be9b27885408a5ca4
parenta29b073f26d98cc4c53bf484dc18bc8de5073530
MEDIUM: shctx: Descend shctx_lock calls into the shctx_row_reserve_hot

Descend the shctx_lock calls into the shctx_row_reserve_hot so that the
cases when we don't need to lock anything (enough space in the current
row or not enough space in the 'avail' list) do not take the lock at
all.
In sh_ssl_sess_new_cb the lock had to be descended into
sh_ssl_sess_store in order not to cover the shctx_row_reserve_hot call
anymore.
src/cache.c
src/shctx.c
src/ssl_sock.c