commit | 950954f5f7dbf218f4100921e2660c357ed50ad3 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Jul 10 08:32:10 2020 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Jul 10 08:52:13 2020 +0200 |
tree | 42ed801bbaada7a4c158b22aa729516056d1048f | |
parent | a9d7b76f6a5824fd2d36ce11fa0a1a1c504f1104 [diff] |
MINOR: tasks: use MT_LIST_ADDQ() when killing tasks. A bug in task_kill() was fixed by commy 54d31170a ("BUG/MAJOR: sched: make sure task_kill() always queues the task") which added a list initialization before adding an element. But in fact an inconditional addition would have done the same and been simpler than first initializing then checking the element was initialized. Let's use MT_LIST_ADDQ() there to add the task to kill into the shared queue and kill the dirty LIST_INIT().