mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
BUG/MEDIUM: tasklets: Add the thread as active when waking a tasklet.
Set the flag for the current thread in active_threads_mask when waking a tasklet, or we will never run it if no tasks are available. This is 1.9-specific, no backport is needed.
This commit is contained in:
parent
18a85fe602
commit
abedf5f6c3
1 changed files with 1 additions and 0 deletions
|
|
@ -226,6 +226,7 @@ static inline void tasklet_wakeup(struct tasklet *tl)
|
|||
return;
|
||||
LIST_ADDQ(&task_list[tid], &tl->list);
|
||||
task_list_size[tid]++;
|
||||
HA_ATOMIC_OR(&active_tasks_mask, tid_bit);
|
||||
HA_ATOMIC_ADD(&tasks_run_queue, 1);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue