]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: task: make task_instant_wakeup() work on a task not a tasklet
authorWilly Tarreau <w@1wt.eu>
Tue, 6 Sep 2022 14:31:30 +0000 (16:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Sep 2022 12:19:15 +0000 (14:19 +0200)
commit0fae3a0360314285a17153cac76413184143ee74
treef8da97b3d6ae0cfa0470194c4276ee7b6a94827e
parentf27acd961e9b4291f80bc54100e57969ec4372ec
BUG/MINOR: task: make task_instant_wakeup() work on a task not a tasklet

There's a subtle (harmless) bug in task_instant_wakeup(). As it uses
some tasklet code instead of some task code, the debug part also acts
on the tasklet equivalent, and the call_date is only set when DEBUG_TASK
is set instead of inconditionally like with tasks. As such, without this
debugging macro, call dates are not updated for tasks woken this way.

There isn't any impact yet because this function was introduced in 2.6 to
solve certain classes of issues and is not used yet, and in the worst case
it would only affect the reported latency time.

This may be backported to 2.6 in case a future fix would depend on it but
currently will not fix existing code.
include/haproxy/task.h