]> git.kaiwu.me - haproxy.git/commit
MINOR: task: make tasklet_wakeup() explicitly call _tasklet_wakeup_here()
authorWilly Tarreau <w@1wt.eu>
Wed, 24 Jun 2026 13:50:47 +0000 (15:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Jun 2026 17:08:00 +0000 (19:08 +0200)
commit721e9321156fca104deba0581b8cd70c5ac427eb
treeafe3aaef61a09ff29640077228041a149409e599
parent11f7994bcbde4e12dbbd5405e8aeaff08b3fe4f8
MINOR: task: make tasklet_wakeup() explicitly call _tasklet_wakeup_here()

This patch moves the tid check upper in the chain, in tasklet_wakeup()
so as to branch to _tasklet_wakeup_here() for run-anywhere tasklets, or
_tasklet_wakeup_on() for designated threads. The tid is retrieved via
__task_get_current_owner() so that the call remains compatible with
tasklets that would have a super-negative tid due to being tasks used
as tasklets.
include/haproxy/task.h