From: Willy Tarreau Date: Tue, 10 Feb 2026 13:09:54 +0000 (+0100) Subject: CLEANUP: haproxy: fix bad line wrapping in run_poll_loop() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b45beb465a92db5343863e13e13b7f40a4cb6cc;p=thirdparty%2Fhaproxy.git 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. --- 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()) {