]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: tasks: No longer use rq.node.leaf_p as a lock.
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 17 Apr 2019 17:13:07 +0000 (19:13 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 17 Apr 2019 17:28:01 +0000 (19:28 +0200)
commit4a1be0c6d6b62a5f6912ce362eee34b9b7b07d7d
treeac981eefa7fe42aece4ac930c2da954a5361ae12
parent5c964f7b42fb3da0c22cbf42c64996fd7b69327e
MEDIUM: tasks: No longer use rq.node.leaf_p as a lock.

Now that we have the warranty that a task won't be added in the runqueue
while the TASK_QUEUED or the TASK_RUNNING flag is set, don't bother trying
to lock the task by setting leaf_p to 0x1 while inserting it in the runqueue
or having it in the tasklet_list, as nobody else will attempt to add it.
include/proto/task.h