]> git.kaiwu.me - haproxy.git/commit
MEDIUM: task: make __tasklet_wakeup_on() only accept non-local threads
authorWilly Tarreau <w@1wt.eu>
Wed, 24 Jun 2026 14:29:02 +0000 (16:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Jun 2026 17:08:00 +0000 (19:08 +0200)
commit69c799f286344bfe3110d51fcce02a37f2ea6078
tree1b25adbc79d38e4d4421bd30fecec5f562403dd6
parent56f6a049bd38cc5839b373eae2cc7d2f43e73ba0
MEDIUM: task: make __tasklet_wakeup_on() only accept non-local threads

The ambiguity in usage for __tasklet_wakeup_on() is now gone. All known
callers that used to be able to pass a negative value now call
__tasklet_wakeup_here(), and remaining ones always pass an explicit
thread number. This means that we can remove the "if (thr<0)" branch,
but still leave a BUG_ON_HOT() to catch any possibly missed case. The
comment around tasklet_wakeup_on() not supporting remotely waking a
tasklet whose tid<0 was also removed since it was addressed long ago.
include/haproxy/task.h
src/task.c