commit | 018564eaa254c8ffe46cfff065f41798e17e5642 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Feb 24 16:41:11 2021 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Wed Feb 24 17:42:04 2021 +0100 |
tree | 0fc659801d3f36144f544f9c0728a8c73e6e2383 | |
parent | 1f3b1417b87e4587ecd29f7f9ba4f468fc235b44 [diff] |
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.