]> git.kaiwu.me - haproxy.git/commit
CLEANUP: task: remove the unused task_unlink_rq()
authorWilly Tarreau <w@1wt.eu>
Thu, 16 Jun 2022 13:36:58 +0000 (15:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 Jul 2022 17:15:14 +0000 (19:15 +0200)
commit3961608f63691a09ade587f9acb7f5abf7570f91
treed273f1fe30f582f4fb9d6563b96ca4548394fdb2
parenteed3911a54aedeedb1193f6a3450cefe588f1375
CLEANUP: task: remove the unused task_unlink_rq()

This function stopped being used before 2.4 because either the task is
dequeued by the scheduler itself and it knows where to find it, or it's
killed by any thread, and task_kill() must be used for this as only this
one is safe.

It's difficult to say whether task_unlink_rq() is still safe, but once
the lock moves to a thread declared in the task itself, it will be even
more difficult to keep it safe.

Let's just remove it now before someone reuses it and causes trouble.
include/haproxy/task.h