commit | 32953df7a6eb56bd9b8f18a13034d55f9fc96cfa | [log] [tgz] |
---|---|---|
author | Pablo Neira Ayuso <pablo@netfilter.org> | Sat Jul 17 10:20:08 2021 +0200 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Fri Jul 23 14:18:02 2021 +0200 |
tree | 48e2e8efcadc59cd46cd93bb7ee0e8994804cb9e | |
parent | 32c3973d808301e7a980f80fee8818fdf7c82b09 [diff] |
netfilter: nft_last: avoid possible false sharing Use the idiom described in: https://github.com/google/ktsan/wiki/READ_ONCE-and-WRITE_ONCE#it-may-improve-performance Moreover, prevent a compiler optimization. Fixes: 836382dc2471 ("netfilter: nf_tables: add last expression") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>