From 3b45beb465a92db5343863e13e13b7f40a4cb6cc Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 10 Feb 2026 14:09:54 +0100 Subject: [PATCH] CLEANUP: haproxy: fix bad line wrapping in run_poll_loop() Commit 3674afe8a0 ("BUG/MEDIUM: threads: Atomically set TH_FL_SLEEPING and clr FL_NOTIFIED") accidentally left a strange-looking line wrapping making one think of an editing mistake, let's fix it and keep it on a single line given that even indented wrapping is almost as large. This can be backported with the fix above till 2.8 to keep the patch context consistent between versions. --- src/haproxy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/haproxy.c b/src/haproxy.c index 48186a66a..6c6360171 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -2925,8 +2925,7 @@ void run_poll_loop() else { unsigned int flags = _HA_ATOMIC_LOAD(&th_ctx->flags); - while (unlikely(!HA_ATOMIC_CAS(&th_ctx->flags, &flags, -(flags | TH_FL_SLEEPING) & ~TH_FL_NOTIFIED))) + while (unlikely(!HA_ATOMIC_CAS(&th_ctx->flags, &flags, (flags | TH_FL_SLEEPING) & ~TH_FL_NOTIFIED))) __ha_cpu_relax(); if (thread_has_tasks()) { -- 2.47.3