]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: tasks: fix task accounting when killed
authorWilly Tarreau <w@1wt.eu>
Fri, 2 May 2025 08:34:16 +0000 (10:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 May 2025 09:09:28 +0000 (11:09 +0200)
commit45e83e8e81ca76d91a4e9b3e5d065e9d78ba4d57
treeef03877aa01d97b410a84348340025c672fe3a38
parentfaa18c1ad878ae8de44df876bd1390a2d71d6982
BUG/MAJOR: tasks: fix task accounting when killed

After recent commit b81c9390f ("MEDIUM: tasks: Mutualize the TASK_KILLED
code between tasks and tasklets"), the task accounting was no longer
correct for killed tasks due to the decrement of tasks in list that was
no longer done, resulting in infinite loops in process_runnable_tasks().
This just illustrates that this code remains complex and should be further
cleaned up. No backport is needed, as this was in 3.2.
src/task.c