Netdev List
 help / color / mirror / Atom feed
From: Kirill Tkhai <ktkhai@virtuozzo.com>
To: davem@davemloft.net, avagin@virtuozzo.com, pablo@netfilter.org,
	kadlec@blackhole.kfki.hu, fw@strlen.de, yoshfuji@linux-ipv6.org,
	afaerber@suse.de, steffen.klassert@secunet.com,
	herbert@gondor.apana.org.au, johannes@sipsolutions.net,
	netdev@vger.kernel.org, ktkhai@virtuozzo.com
Subject: [PATCH 05/16] net: Convert raw6_net_ops, udplite6_net_ops, ipv6_proc_ops, if6_proc_net_ops and ip6_route_net_late_ops
Date: Mon, 19 Feb 2018 11:49:10 +0300	[thread overview]
Message-ID: <151903015072.32574.14915072397589099662.stgit@localhost.localdomain> (raw)
In-Reply-To: <151902976942.32574.10711323959096437995.stgit@localhost.localdomain>

These pernet_operations create and destroy /proc entries
and safely may be converted and safely may be mark as async.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 net/ipv6/addrconf.c |    1 +
 net/ipv6/proc.c     |    1 +
 net/ipv6/raw.c      |    1 +
 net/ipv6/route.c    |    2 ++
 4 files changed, 5 insertions(+)

diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 8c17f8d8d5d9..4facfe0b1888 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -4257,6 +4257,7 @@ static void __net_exit if6_proc_net_exit(struct net *net)
 static struct pernet_operations if6_proc_net_ops = {
 	.init = if6_proc_net_init,
 	.exit = if6_proc_net_exit,
+	.async = true,
 };
 
 int __init if6_proc_init(void)
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c
index b67814242f78..b8858c546f41 100644
--- a/net/ipv6/proc.c
+++ b/net/ipv6/proc.c
@@ -343,6 +343,7 @@ static void __net_exit ipv6_proc_exit_net(struct net *net)
 static struct pernet_operations ipv6_proc_ops = {
 	.init = ipv6_proc_init_net,
 	.exit = ipv6_proc_exit_net,
+	.async = true,
 };
 
 int __init ipv6_misc_proc_init(void)
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index 4c25339b1984..10a4ac4933b7 100644
--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -1332,6 +1332,7 @@ static void __net_exit raw6_exit_net(struct net *net)
 static struct pernet_operations raw6_net_ops = {
 	.init = raw6_init_net,
 	.exit = raw6_exit_net,
+	.async = true,
 };
 
 int __init raw6_proc_init(void)
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index f0baae26db8f..1be84ef23f43 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -4972,6 +4972,7 @@ static void __net_exit ip6_route_net_exit_late(struct net *net)
 static struct pernet_operations ip6_route_net_ops = {
 	.init = ip6_route_net_init,
 	.exit = ip6_route_net_exit,
+	.async = true,
 };
 
 static int __net_init ipv6_inetpeer_init(struct net *net)
@@ -5002,6 +5003,7 @@ static struct pernet_operations ipv6_inetpeer_ops = {
 static struct pernet_operations ip6_route_net_late_ops = {
 	.init = ip6_route_net_init_late,
 	.exit = ip6_route_net_exit_late,
+	.async = true,
 };
 
 static struct notifier_block ip6_route_dev_notifier = {

  parent reply	other threads:[~2018-02-19  8:49 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-19  8:47 [PATCH 00/16] Converting pernet_operations (part #2) Kirill Tkhai
2018-02-19  8:48 ` [PATCH 01/16] net: Convert inet6_net_ops Kirill Tkhai
2018-02-19  8:48 ` [PATCH 02/16] net: Convert cfg80211_pernet_ops Kirill Tkhai
2018-02-19  8:48 ` [PATCH 03/16] net: Convert ip6mr_net_ops Kirill Tkhai
2018-02-19  8:48 ` [PATCH 04/16] net: Convert icmpv6_sk_ops, ndisc_net_ops and igmp6_net_ops Kirill Tkhai
2018-02-19  8:49 ` Kirill Tkhai [this message]
2018-02-19  8:49 ` [PATCH 06/16] net: Convert ipv6_inetpeer_ops Kirill Tkhai
2018-02-19  8:49 ` [PATCH 07/16] net: Convert fib6_rules_net_ops Kirill Tkhai
2018-02-19  8:49 ` [PATCH 08/16] net: Convert tcpv6_net_ops Kirill Tkhai
2018-02-19  8:49 ` [PATCH 09/16] net: Convert ipv6_sysctl_net_ops Kirill Tkhai
2018-02-19  8:49 ` [PATCH 10/16] net: Convert ping_v6_net_ops Kirill Tkhai
2018-02-19  8:50 ` [PATCH 11/16] net: Convert ip6_flowlabel_net_ops Kirill Tkhai
2018-02-19  8:50 ` [PATCH 12/16] net: Convert xfrm6_net_ops Kirill Tkhai
2018-02-19  8:50 ` [PATCH 13/16] net: Convert fib6_net_ops, ipv6_addr_label_ops and ip6_segments_ops Kirill Tkhai
2018-02-19  8:50 ` [PATCH 14/16] net: Convert ip6_frags_ops Kirill Tkhai
2018-02-19  8:50 ` [PATCH 15/16] net: Convert ip_tables_net_ops, udplite6_net_ops and xt_net_ops Kirill Tkhai
2018-02-19  8:50 ` [PATCH 16/16] net: Convert iptable_filter_net_ops Kirill Tkhai
2018-02-19 13:51 ` [PATCH 00/16] Converting pernet_operations (part #2) Kirill Tkhai
2018-02-19 19:22 ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=151903015072.32574.14915072397589099662.stgit@localhost.localdomain \
    --to=ktkhai@virtuozzo.com \
    --cc=afaerber@suse.de \
    --cc=avagin@virtuozzo.com \
    --cc=davem@davemloft.net \
    --cc=fw@strlen.de \
    --cc=herbert@gondor.apana.org.au \
    --cc=johannes@sipsolutions.net \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=netdev@vger.kernel.org \
    --cc=pablo@netfilter.org \
    --cc=steffen.klassert@secunet.com \
    --cc=yoshfuji@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox