]> git.ipfire.org Git - thirdparty/haproxy.git/commit
Revert "BUG/MINOR: task: Don't defer tasks release when HAProxy is stopping"
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 25 May 2022 14:30:41 +0000 (16:30 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 25 May 2022 14:41:52 +0000 (16:41 +0200)
commita45403f9658ba8251659cd1c513df15ecb98d8aa
treebffc7660542c043dced92a55146e4072b7d49f66
parent8c6176b8dbc645a601aac24e69311544463c0fcc
Revert "BUG/MINOR: task: Don't defer tasks release when HAProxy is stopping"

This reverts commit d9404b464faae3340ac1745b594929e4b7edd650.

In fact, there is a BUG_ON() in __task_free() function to be sure the task
is no longer in the wait-queue or the run-queue. Because the patch tries to
fix a "leak" on deinit, it is safer to revert it. there is no reason to
introduce potential bug for this kind of issues. And there is no reason to
impact the normal use-cases at runtime with additionnal conditions to only
remove a task on deinit.
include/haproxy/task.h