]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tasks/debug: add a few BUG_ON() to detect use of wrong timer queue
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Jul 2020 12:29:42 +0000 (14:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 Jul 2020 12:42:52 +0000 (14:42 +0200)
commite5d79bccc0641ba26bb78ae029cafb4e17e6b13f
tree09a2095e453e35f1472c0a151ee15ea5bb045274
parent2447bce554decc560a4e2659f164f8aafa63e3c8
MINOR: tasks/debug: add a few BUG_ON() to detect use of wrong timer queue

This aims at catching calls to task_unlink_wq() performed by the wrong
thread based on the shared status for the task, as well as calls to
__task_queue() with the wrong timer queue being used based on the task's
capabilities. This will at least help eliminate some hypothesis during
debugging sessions when suspecting that a wrong thread has attempted to
queue a task at the wrong place.
include/haproxy/task.h
src/task.c