From: Willy Tarreau Date: Tue, 14 Jun 2022 08:43:01 +0000 (+0200) Subject: MINOR: tinfo: make tid temporarily still reflect global ID X-Git-Tag: v2.7-dev2~160 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=252754c745a07f206dd5f23e4f13f2cace705cde;p=thirdparty%2Fhaproxy.git MINOR: tinfo: make tid temporarily still reflect global ID For now we still set tid_bit to (1UL << tid) because FDs will not work with more than one group without this, but once FDs start to adopt local masks this must change to thr->ltid_bit. --- diff --git a/include/haproxy/thread.h b/include/haproxy/thread.h index a66180ee56..6ed080ecbc 100644 --- a/include/haproxy/thread.h +++ b/include/haproxy/thread.h @@ -230,7 +230,7 @@ static inline void ha_set_thread(const struct thread_info *thr) ti = thr; tg = thr->tg; tid = thr->tid; - tid_bit = thr->ltid_bit; + tid_bit = 1UL << tid; /* FIXME: must become thr->ltid_bit */ th_ctx = &ha_thread_ctx[tid]; tgid = tg->tgid; } else {