mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-06 20:29:48 +00:00
BUG/MEDIUM: tasks: Don't forget to decrement task_list_size in tasklet_free().
In tasklet_free(), if we're currently in the runnable task list, don't forget to decrement taks_list_size, or it'll end up being to big, and we may not process tasks in the global runqueue.
This commit is contained in:
parent
cd5c944ea5
commit
931624a00b
@ -347,6 +347,8 @@ static inline void task_free(struct task *t)
|
|||||||
|
|
||||||
static inline void tasklet_free(struct tasklet *tl)
|
static inline void tasklet_free(struct tasklet *tl)
|
||||||
{
|
{
|
||||||
|
if (!LIST_ISEMPTY(&tl->list))
|
||||||
|
task_list_size[tid]--;
|
||||||
LIST_DEL(&tl->list);
|
LIST_DEL(&tl->list);
|
||||||
|
|
||||||
pool_free(pool_head_tasklet, tl);
|
pool_free(pool_head_tasklet, tl);
|
||||||
|
Loading…
Reference in New Issue
Block a user