]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: task: move the tree root detection from __task_wakeup() to task_wakeup()
authorWilly Tarreau <w@1wt.eu>
Wed, 24 Feb 2021 15:41:11 +0000 (16:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Feb 2021 16:42:04 +0000 (17:42 +0100)
commit018564eaa254c8ffe46cfff065f41798e17e5642
tree0fc659801d3f36144f544f9c0728a8c73e6e2383
parent1f3b1417b87e4587ecd29f7f9ba4f468fc235b44
CLEANUP: task: move the tree root detection from __task_wakeup() to task_wakeup()

Historically we used to call __task_wakeup() with a known tree root but
this is not the case and the code has remained needlessly complicated
with the root calculation in task_wakeup() passed in argument to
__task_wakeup() which compares it again.

Let's get rid of this and just move the detection code there. This
eliminates some ifdefs and allows to simplify the test conditions quite
a bit.
include/haproxy/task.h
src/task.c