haproxy/include
Willy Tarreau 9f5cb435b6 MINOR: stick-table: move the write lock inside stktable_touch_with_exp()
Taking the write lock prior to entering that function is a problem
because this function is full of conditions that most of the time can
lead to eliminating the lock.

This commit first moves the write lock inside the function and passes
the extra argument required to implement stktable_touch_remote() and
stktable_touch_local(). It also renames the function to remove the
underscores since there's no other variant and it's exported under
this name (probably an old rename that was not propagated). The code
was stressed under 48 threads using 3 trackers on the same table. It
already shows a tiny 3% improvement from 187k to 193k rps.
2022-10-12 14:19:05 +02:00
..
haproxy MINOR: stick-table: move the write lock inside stktable_touch_with_exp() 2022-10-12 14:19:05 +02:00
import MINOR: plock: support disabling exponential back-off 2022-10-12 14:19:05 +02:00