]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: tasks: Use __ha_barrier_store after modifying global_tasks_mask.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 18 Apr 2019 12:12:51 +0000 (14:12 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 18 Apr 2019 12:14:10 +0000 (14:14 +0200)
commited1a6a0d8a50f8b4b4819121de7f0eaf6927273f
tree2026054af8b4b5c4fae625a6c5dc3ffb6ad26546
parentd83b6c1ab3d36ab522892675c8d5f9072c1fd3ef
MEDIUM: tasks: Use __ha_barrier_store after modifying global_tasks_mask.

Now that we no longer use atomic operations to update global_tasks_mask,
as it's always modified while holding the TASK_RQ_LOCK, we have to use
__ha_barrier_store() instead of __ha_barrier_atomic_store() to ensure
any modification of global_tasks_mask is seen before modifying
active_tasks_mask.

This should be backported to 1.9.
src/task.c