From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-db5eur01on0125.outbound.protection.outlook.com ([104.47.2.125]:21196 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933361AbeCELbH (ORCPT ); Mon, 5 Mar 2018 06:31:07 -0500 Subject: [PATCH net-next 03/12] net: Convert arp_tables_net_ops and ip6_tables_net_ops From: Kirill Tkhai To: pablo@netfilter.org, kadlec@blackhole.kfki.hu, fw@strlen.de, stephen@networkplumber.org, davem@davemloft.net, dmitry.tarnyagin@lockless.no, socketcan@hartkopp.net, mkl@pengutronix.de, gerrit@erg.abdn.ac.uk, yoshfuji@linux-ipv6.org, johannes.berg@intel.com, garsilva@embeddedor.com, ross.lagerwall@citrix.com, aconole@bytheb.org, netdev@vger.kernel.org, ktkhai@virtuozzo.com Date: Mon, 05 Mar 2018 14:31:00 +0300 Message-ID: <152024946001.3454.5333783532712287433.stgit@localhost.localdomain> In-Reply-To: <152024910817.3454.18426950407771593279.stgit@localhost.localdomain> References: <152024910817.3454.18426950407771593279.stgit@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: These pernet_operations call xt_proto_init() and xt_proto_fini(), which just register and unregister /proc entries. They are safe to be marked as async. Signed-off-by: Kirill Tkhai --- net/ipv4/netfilter/arp_tables.c | 1 + net/ipv6/netfilter/ip6_tables.c | 1 + 2 files changed, 2 insertions(+) diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4/netfilter/arp_tables.c index e3e420f3ba7b..c36ffce3c812 100644 --- a/net/ipv4/netfilter/arp_tables.c +++ b/net/ipv4/netfilter/arp_tables.c @@ -1635,6 +1635,7 @@ static void __net_exit arp_tables_net_exit(struct net *net) static struct pernet_operations arp_tables_net_ops = { .init = arp_tables_net_init, .exit = arp_tables_net_exit, + .async = true, }; static int __init arp_tables_init(void) diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index 62358b93bbac..4de8ac1e5af4 100644 --- a/net/ipv6/netfilter/ip6_tables.c +++ b/net/ipv6/netfilter/ip6_tables.c @@ -1928,6 +1928,7 @@ static void __net_exit ip6_tables_net_exit(struct net *net) static struct pernet_operations ip6_tables_net_ops = { .init = ip6_tables_net_init, .exit = ip6_tables_net_exit, + .async = true, }; static int __init ip6_tables_init(void)