]> git.itanic.dy.fi Git - linux-stable/commit
netfilter: nft_set_rbtree: prefer sync gc to async worker
authorFlorian Westphal <fw@strlen.de>
Fri, 13 Oct 2023 12:18:16 +0000 (14:18 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 24 Oct 2023 11:16:29 +0000 (13:16 +0200)
commit7d259f021aaa78904b6c836d975e8e00d83a182a
tree4278e0d4ed4a29392623580f57f5710303fb9744
parent8079fc30f79799e59d9602e7e080d434936a482d
netfilter: nft_set_rbtree: prefer sync gc to async worker

There is no need for asynchronous garbage collection, rbtree inserts
can only happen from the netlink control plane.

We already perform on-demand gc on insertion, in the area of the
tree where the insertion takes place, but we don't do a full tree
walk there for performance reasons.

Do a full gc walk at the end of the transaction instead and
remove the async worker.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_rbtree.c