Skip to content
Snippets Groups Projects
Commit d99407f4 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso
Browse files

netfilter: nft_rbtree: no need for spinlock from set destroy path


The sets are released from the rcu callback, after the rule is removed
from the chain list, which implies that nfnetlink cannot update the
rbtree and no packets are walking on the set anymore. Thus, we can get
rid of the spinlock in the set destroy path there.

Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Reviewied-by: default avatarThomas Graf <tgraf@suug.ch>
parent 39f39016
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment