Revert "netfilter: nft_counter: Synchronize nft_counter_reset() against reader."

This reverts commit f20c3d81df.
This commit is contained in:
Ksawlii 2024-11-24 00:23:52 +01:00
parent de3732a8a6
commit c322079edc

View file

@ -105,16 +105,11 @@ static void nft_counter_reset(struct nft_counter_percpu_priv *priv,
struct nft_counter *total)
{
struct nft_counter *this_cpu;
seqcount_t *myseq;
local_bh_disable();
this_cpu = this_cpu_ptr(priv->counter);
myseq = this_cpu_ptr(&nft_counter_seq);
write_seqcount_begin(myseq);
this_cpu->packets -= total->packets;
this_cpu->bytes -= total->bytes;
write_seqcount_end(myseq);
local_bh_enable();
}