]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream: don't update s->lat_time when the wakeup date is not set
authorWilly Tarreau <w@1wt.eu>
Tue, 19 Nov 2024 15:42:40 +0000 (16:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 19 Nov 2024 19:13:41 +0000 (20:13 +0100)
commit33c461314c7dbd24565fcc0c0a795fc779618bf3
treef22c700ad519e91b8125ee610f5ffc5bc2e5d760
parent973c81ceecca3eb8f5fffca21be3bdf652cc3858
MINOR: stream: don't update s->lat_time when the wakeup date is not set

In 2.7 was added a stream wakeup latency calculation with commit
6a28a30efa ("MINOR: tasks: do not keep cpu and latency times in struct
task"). However, due to the transformation of the previous code, it
kept unconditionally updating s->lat_time even of the sched_wake_date
was zero. In other words, s->lat_time is constantly updated for the
huge majority of calls that are made without profiling. Let's just
check the sched_wake_date status before doing so.
src/stream.c