mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-31 15:47:10 +00:00
BUG/MEDIUM: tasks: Decrement tasks_run_queue in tasklet_free().
If the tasklet is in the list, don't forget to decrement tasks_run_queue in tasklet_free(). This should be backported to 1.9.
This commit is contained in:
parent
bb3dac37a2
commit
09e498f1a1
@ -365,8 +365,10 @@ static inline void task_free(struct task *t)
|
||||
|
||||
static inline void tasklet_free(struct tasklet *tl)
|
||||
{
|
||||
if (!LIST_ISEMPTY(&tl->list))
|
||||
if (!LIST_ISEMPTY(&tl->list)) {
|
||||
task_per_thread[tid].task_list_size--;
|
||||
HA_ATOMIC_SUB(&tasks_run_queue, 1);
|
||||
}
|
||||
LIST_DEL(&tl->list);
|
||||
|
||||
pool_free(pool_head_tasklet, tl);
|
||||
|
Loading…
Reference in New Issue
Block a user