]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tasks/debug: add a BUG_ON() check to detect requeued task on free
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Jul 2020 12:33:53 +0000 (14:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 Jul 2020 12:42:52 +0000 (14:42 +0200)
commitf2452b3c70762ee0917a95dc1634770f5611e2e3
treef0bdb36a20fdc46a495b120a6d8766f35b671bd2
parente5d79bccc0641ba26bb78ae029cafb4e17e6b13f
MINOR: tasks/debug: add a BUG_ON() check to detect requeued task on free

__task_free() cannot be called with a task still in the queue. This
test adds a check which confirms there is no concurrency issue on such
a case where a thread could requeue nor wakeup a task being freed.
include/haproxy/task.h