BUG/MINOR: activity: take care of late wakeups in "show tasks"
authorWilly Tarreau <w@1wt.eu>
Fri, 29 Jan 2021 14:04:16 +0000 (15:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 29 Jan 2021 14:07:07 +0000 (15:07 +0100)
commit75f72338dfe9c41f063c5d3d03febdba71020a60
tree8193146fa6aed9703c2219abb5e3eccec6474ac1
parentd597ec2718986e265043479ae11bb9f5e10091fb
BUG/MINOR: activity: take care of late wakeups in "show tasks"

During the call to thread_isolate(), some other threads might have
performed some task_wakeup() which will have a call date past the
one we retrieved. It could be avoided by taking the current date
once we're alone but this would significantly affect the latency
measurements by adding the isolation time. Instead we're now only
accounting positive times, so that late wakeups normally appear
with a zero latency.

No backport is needed, this is 2.4.
src/activity.c