diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-12-10 00:06:44 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-12-23 01:00:56 +0100 |
commit | 0d1873a52289f7214e7e70d2d0552b617582269a (patch) | |
tree | ea0f91008d8959a80223c49c07621861d1a956aa | |
parent | netfilter: nf_nat_masquerade: add netns refcount tracker to masq_dev_work (diff) | |
download | linux-0d1873a52289f7214e7e70d2d0552b617582269a.tar.xz linux-0d1873a52289f7214e7e70d2d0552b617582269a.zip |
netfilter: nf_tables: remove rcu read-size lock
Chain stats are updated from the Netfilter hook path which already run
under rcu read-size lock section.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | net/netfilter/nf_tables_core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/netfilter/nf_tables_core.c b/net/netfilter/nf_tables_core.c index adc348056076..41c7509955e6 100644 --- a/net/netfilter/nf_tables_core.c +++ b/net/netfilter/nf_tables_core.c @@ -110,7 +110,6 @@ static noinline void nft_update_chain_stats(const struct nft_chain *chain, base_chain = nft_base_chain(chain); - rcu_read_lock(); pstats = READ_ONCE(base_chain->stats); if (pstats) { local_bh_disable(); @@ -121,7 +120,6 @@ static noinline void nft_update_chain_stats(const struct nft_chain *chain, u64_stats_update_end(&stats->syncp); local_bh_enable(); } - rcu_read_unlock(); } struct nft_jumpstack { |