From: Pablo Neira Ayuso Date: Wed, 1 Oct 2014 11:53:20 +0000 (+0200) Subject: netfilter: nf_tables: wait for call_rcu completion on module removal X-Git-Tag: v4.0~1069^2~40^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b1bc49c0fc0501bf0d1366a2a5e5c1f8dcf9cb1;p=platform%2Fkernel%2Flinux-amlogic.git netfilter: nf_tables: wait for call_rcu completion on module removal Make sure the objects have been released before the nf_tables modules is removed. Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 19e79f0..556a0df 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -4163,6 +4163,7 @@ static void __exit nf_tables_module_exit(void) { unregister_pernet_subsys(&nf_tables_net_ops); nfnetlink_subsys_unregister(&nf_tables_subsys); + rcu_barrier(); nf_tables_core_module_exit(); kfree(info); }