]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: plock: support disabling exponential back-off
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Oct 2022 15:02:02 +0000 (17:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Oct 2022 12:19:05 +0000 (14:19 +0200)
commitb13044cc1ac04ed4239030f9e600b9301ac531be
tree35e92e107cabe0fb838563f5dc21cc2c397c3d79
parentbc7c207f745bf6406b38139b98cb5b8c794e13f0
MINOR: plock: support disabling exponential back-off

The new macro PLOCK_DISABLE_EBO may be defined to disable exponential
backoff. This can be useful to more easily spot functions that cause
contention. In this case the CPU will be spent inside the functions
themselves instead of the pl_wait_unlock_{long,int}() functions, making
them easier to spot using "perf top" even if that causes a significant
degradation of the thread scalability.
include/import/plock.h