MINOR: task: remove __tasklet_remove_from_tasklet_list()
authorWilly Tarreau <w@1wt.eu>
Mon, 30 Nov 2020 13:52:11 +0000 (14:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 30 Nov 2020 17:17:44 +0000 (18:17 +0100)
commit2da4c316c2cb7b01f54ed1959e91d1799d13959c
tree2a10df83cec705f162326adf13a7a57d607ad308
parentc309dbdd9932f7ecd8976e8f0a2479b65149eb76
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.
include/haproxy/task.h
src/task.c