]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: debug: make sure the "debug dev sched" tasks don't block stopping
authorWilly Tarreau <w@1wt.eu>
Fri, 7 Feb 2025 17:01:32 +0000 (18:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Feb 2025 17:04:29 +0000 (18:04 +0100)
commit8d63dc50ab2bfb0aceb486ad5f99b2b380430f16
tree2b94d6e9dc1ea00eb8e84ce1495d577fe74b64dc
parent6765a32eb4f0a16ccd804668caed8a195f195a91
BUG/MINOR: debug: make sure the "debug dev sched" tasks don't block stopping

When "debug dev sched" is used to pop up background tasks, these tasks
are never stopped, so we must be careful to stop them when the stopping
flag is set, otherwise they can prevent the process from stopping when
sufficiently numerous (tests went as far as 100 million tasks, leading
the run queue never being completely purged in one poll round).

No backport is needed since this is only used when debugging and tuning
the scheduler.
src/debug.c