From c6b98f05d2ee7bc91771c9a730d19dc40e3d83d9 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 16 Aug 2023 22:25:34 +0200 Subject: [PATCH] IMPORT: plock: also support inlining the int code Commit 9db830b ("plock: support inlining exponential backoff code") added an option to support inlining of the wait code for longs but forgot to do it for ints. Let's do it now. This is plock upstream commit b1f9f0d252fa40577d11cfb2bc0a809d6960a297. --- include/import/plock.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/import/plock.h b/include/import/plock.h index 4e6ab8c26..1345e958a 100644 --- a/include/import/plock.h +++ b/include/import/plock.h @@ -138,7 +138,11 @@ static unsigned long pl_wait_unlock_long(const unsigned long *lock, const unsign _r; /* return value */ \ }) #else +# if defined(PLOCK_INLINE_EBO) +__attribute__((unused,always_inline,no_instrument_function)) inline +# else __attribute__((unused,noinline,no_instrument_function)) +# endif static unsigned int pl_wait_unlock_int(const unsigned int *lock, const unsigned int mask) { unsigned int ret;