Skip to content
Commit 32953df7 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso
Browse files

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: 836382dc ("netfilter: nf_tables: add last expression")
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 32c3973d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment