From: Willy Tarreau Date: Wed, 4 Aug 2021 08:33:57 +0000 (+0200) Subject: CLEANUP: thread: fix fantaisist indentation of thread_harmless_till_end() X-Git-Tag: v2.5-dev4~77 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=286363be0855d8d5d608cdaa1ebcc766ed174469;p=thirdparty%2Fhaproxy.git CLEANUP: thread: fix fantaisist indentation of thread_harmless_till_end() Probably due to a copy-paste, there were two indent levels in this function since its introduction in 1.9 by commit 60b639ccb ("MEDIUM: hathreads: implement a more flexible rendez-vous point"). Let's fix this. --- diff --git a/src/thread.c b/src/thread.c index bc655bd501..a8b231aca6 100644 --- a/src/thread.c +++ b/src/thread.c @@ -56,10 +56,10 @@ struct lock_stat lock_stats[LOCK_LABELS]; */ void thread_harmless_till_end() { - _HA_ATOMIC_OR(&threads_harmless_mask, tid_bit); - while (threads_want_rdv_mask & all_threads_mask & ~tid_bit) { - ha_thread_relax(); - } + _HA_ATOMIC_OR(&threads_harmless_mask, tid_bit); + while (threads_want_rdv_mask & all_threads_mask & ~tid_bit) { + ha_thread_relax(); + } } /* Isolates the current thread : request the ability to work while all other