]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stick-table: always use atomic ops to requeue the table's task
authorWilly Tarreau <w@1wt.eu>
Wed, 12 Oct 2022 10:00:50 +0000 (10:00 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Oct 2022 12:19:05 +0000 (14:19 +0200)
commitdbae89e09cc80cc14e50a8e00f53848a1591b302
tree670b746da23526bdbaf2c32b113eb5eaf41614c0
parenteb23e3e2434653c86f55ef8fe83a3834c1ecced8
MEDIUM: stick-table: always use atomic ops to requeue the table's task

We're generalizing the change performed in previous commit "MEDIUM:
stick-table: requeue the expiration task out of the exclusive lock"
to stktable_requeue_exp() so that it can also be used by callers of
__stktable_store(). At the moment there's still no visible change
since it's still called under the write lock. However, the previous
code in stitable_touch_with_exp() was updated to use this function.
include/haproxy/stick_table.h
src/stick_table.c