]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: haproxy: fix bad line wrapping in run_poll_loop()
authorWilly Tarreau <w@1wt.eu>
Tue, 10 Feb 2026 13:09:54 +0000 (14:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Feb 2026 13:11:42 +0000 (14:11 +0100)
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

index 48186a66a082a2ab57b9fe00e11bf0e8a09d9cf5..6c6360171cef0e42c7fd0fdff3e156ecacd81cac 100644 (file)
@@ -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()) {