]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: task: Split the tasklet list into two lists.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 11 Oct 2019 14:35:01 +0000 (16:35 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 11 Oct 2019 14:37:41 +0000 (16:37 +0200)
commit06910464ddece4b161cb38137c2841cc21577c63
tree7fa1e0b20365bd7098e86966668b3047c1702b0f
parentd7f2bbcbe3900362670b243d648cbd33b602309b
MEDIUM: task: Split the tasklet list into two lists.

As using an mt_list for the tasklet list is costly, instead use a regular list,
but add an mt_list for tasklet woken up by other threads, to be run on the
current thread. At the beginning of process_runnable_tasks(), we just take
the new list, and merge it into the task_list.
This should give us performances comparable to before we started using a
mt_list, but allow us to use tasklet_wakeup() from other threads.
include/proto/task.h
include/types/task.h
src/debug.c
src/task.c