BUG/MEDIUM: tasks: Make sure there's no task left before considering inactive.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 26 Jul 2018 13:25:49 +0000 (15:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 26 Jul 2018 13:40:22 +0000 (15:40 +0200)
commitc4aac9effe37c154add79e8acf31a74736e32522
tree248a4083cd0fbbdc63ec6c3e340a94d9f478d278
parent189ea856a7230ae3ce6a1cf5179145548188d434
BUG/MEDIUM: tasks: Make sure there's no task left before considering inactive.

We may remove the thread's bit in active_tasks_mask despite tasks for that
thread still being present in the global runqueue. To fix that, introduce
global_tasks_mask, and set the correspnding bits when we add a task to the
runqueue.
src/task.c