]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: task: don't set TASK_RUNNING on tasklets
authorWilly Tarreau <w@1wt.eu>
Fri, 31 Jan 2020 15:39:30 +0000 (16:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 31 Jan 2020 17:37:03 +0000 (18:37 +0100)
commit952c2640b009537bc7cae71f47cb869cb4b132df
tree3b98220ae71c0ede42ae5119bb2bbe2af0db5207
parent1dfc9bbdc6ffb986ba9db9ed14684ca93b568598
MINOR: task: don't set TASK_RUNNING on tasklets

We can't clear flags on tasklets because we don't know if they're still
present upon return (they all return NULL, maybe that could change in
the future). As a side effect, once TASK_RUNNING is set, it's never
cleared anymore, which is misleading and resulted in some incorrect
flagging of bulk tasks in the recent scheduler changes. And the only
reason for setting TASK_RUNNING on tasklets was to detect self-wakers,
which is not done using a dedicated flag. So instead of setting this
flags for no opportunity to clear it, let's simply not set it.
src/task.c