]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: core: make nf_unregister_net_hooks simple wrapper again
authorFlorian Westphal <fw@strlen.de>
Thu, 30 Nov 2017 23:21:02 +0000 (00:21 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Jan 2018 17:01:05 +0000 (18:01 +0100)
commit4e4b05bd65028327f72dd277306137dcd2dce573
tree551fcbc839f3dc980b10705cd6a288a944c0a099
parentabce4760b314c46d7ec373a7556b0b163961716d
netfilter: core: make nf_unregister_net_hooks simple wrapper again

This reverts commit d93e059c3faa8
("netfilter: core: batch nf_unregister_net_hooks synchronize_net calls").

Nothing wrong with it.  However, followup patch will delay freeing of hooks
with call_rcu, so all synchronize_net() calls become obsolete and there
is no need anymore for this batching.

This revert causes a temporary performance degradation when destroying
network namespace, but its resolved with the upcoming call_rcu conversion.

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