MINOR: task: remove __tasklet_remove_from_tasklet_list()
authorWilly Tarreau <w@1wt.eu>
Mon, 30 Nov 2020 13:52:11 +0000 (14:52 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 14 Dec 2020 08:18:48 +0000 (09:18 +0100)
commit9a0374aaaafefa07b80e761f97f0fcd7688dabf4
treecb45cbf8663e217dfc5418043d7d1f4146aa6f6d
parentc4f3013d9452707d4efbda455360c8d2af022411
MINOR: task: remove __tasklet_remove_from_tasklet_list()

This function is only used at a single place directly within the
scheduler in run_tasks_from_lists() and it really ought not be called
by anything else, regardless of what its comment says. Let's delete
it, move the two lines directly into the call place, and take this
opportunity to factor the atomic decrement on tasks_run_queue. A comment
was added on the remaining one tasklet_remove_from_tasklet_list() to
mention the risks in using it.

(cherry picked from commit 2da4c316c2cb7b01f54ed1959e91d1799d13959c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/task.h
src/task.c