From: Olivier Houchard Date: Wed, 6 Jun 2018 12:01:08 +0000 (+0200) Subject: BUG/MEDIUM: tasks: Use the local runqueue when building without threads. X-Git-Tag: v1.9-dev1~212 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e13ab8b3c6e72d68fdb9cb6d694a2557b309c87f;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: tasks: Use the local runqueue when building without threads. When building without threads enabled, instead of just using the global runqueue, just use the local runqueue associated with the only thread, as that's what is now expected for a single thread in prcoess_runnable_tasks(). This should fix haproxy when built without threads. --- diff --git a/include/proto/task.h b/include/proto/task.h index 0c2c5f28cb..dc8a54481f 100644 --- a/include/proto/task.h +++ b/include/proto/task.h @@ -133,7 +133,7 @@ static inline void task_wakeup(struct task *t, unsigned int f) else root = &rqueue; #else - struct eb_root *root = &rqueue; + struct eb_root *root = &rqueue_local[tid]; #endif state = HA_ATOMIC_OR(&t->state, f);