]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: task: always reset a new tasklet's call date
authorWilly Tarreau <w@1wt.eu>
Tue, 6 Sep 2022 17:06:52 +0000 (19:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Sep 2022 12:19:15 +0000 (14:19 +0200)
commitf27acd961e9b4291f80bc54100e57969ec4372ec
tree494da8aeac7050edf3e545c6f0f6a9bce08a3614
parent3122c75fd1f9a73a13ec533a4f313be0af1c5348
BUG/MINOR: task: always reset a new tasklet's call date

The tasklet's call date was not reset, so if profiling was enabled while
some tasklets were in the run queue, their initial random value could be
used to preload a bogus initial latency value into the task profiling bin.
Let's just zero the initial value.

This should be backported to 2.4 as it was brought with initial commit
b2285de04 ("MINOR: tasks: also compute the tasklet latency when DEBUG_TASK
is set"). The impact is very low though.
include/haproxy/task.h