]> git.ipfire.org Git - thirdparty/xtables-addons.git/commit
xt_condition: remove `wmb` when adding new variable
authorJeremy Sowden <jeremy@azazel.net>
Sun, 22 Aug 2021 16:35:53 +0000 (17:35 +0100)
committerJan Engelhardt <jengelh@inai.de>
Sun, 22 Aug 2021 19:39:36 +0000 (21:39 +0200)
commit76768e3f6dd035378b1dae9688b59fca506903b7
tree25863121dcd8656fbf3b9ec5b0bf5a5df9ee9b9e
parent1482274d99201d175b23b925c01545e285e84d1e
xt_condition: remove `wmb` when adding new variable

Originally, some accesses to `conditions_list` were protected by RCU and
the memory-barrier was needed to ensure that the new variable was fully
initialized before being added to the list.  These days, however, all
accesses are protected by the `proc_lock` mutex, so the barrier is no
longer required.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
extensions/xt_condition.c