mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-03-14 19:41:33 +01:00
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.
This commit is contained in:
parent
64c5d45a26
commit
3b45beb465
@ -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()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user