]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: tasklets: Make sure we're waking the target thread if it sleeps.
authorOlivier Houchard <cognet@ci0.org>
Tue, 24 Sep 2019 12:55:28 +0000 (14:55 +0200)
committerOlivier Houchard <cognet@ci0.org>
Tue, 24 Sep 2019 12:58:45 +0000 (14:58 +0200)
commitbba1a263c5831436196d1c6fbd5f771d659b34a7
tree802cb31d0d88b3588036e3e5b8715cd983295fbc
parentc45791aa5234de9e19821d7b109ef7487b2f43df
BUG/MEDIUM: tasklets: Make sure we're waking the target thread if it sleeps.

Now that we can wake tasklet for other threads, make sure that if the thread
is sleeping, we wake it up, or the tasklet won't be executed until it's
done sleeping.
That also means that, before going to sleep, and after we put our bit
in sleeping_thread_mask, we have to check that nobody added a tasklet for
us, just checking for global_tasks_mask isn't enough anymore.
include/proto/task.h
src/haproxy.c