Revert "netfilter: nft_counter: Synchronize nft_counter_reset() against reader."
This reverts commit f20c3d81df
.
This commit is contained in:
parent
de3732a8a6
commit
c322079edc
1 changed files with 0 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue