Netdev List
 help / color / mirror / Atom feed
From: Kirill Tkhai <ktkhai@virtuozzo.com>
To: davem@davemloft.net, pablo@netfilter.org,
	kadlec@blackhole.kfki.hu, fw@strlen.de, netdev@vger.kernel.org,
	kvalo@codeaurora.org, davem@davemloft.net, edumazet@google.com,
	jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us,
	mostrows@earthlink.net, alex.aring@gmail.com,
	stefan@osg.samsung.com, avagin@virtuozzo.com,
	ktkhai@virtuozzo.com
Subject: [PATCH net-next 01/28] net: Convert /proc creating and destroying pernet_operations
Date: Mon, 26 Feb 2018 15:59:19 +0300	[thread overview]
Message-ID: <151964995937.28549.1017724517145961149.stgit@localhost.localdomain> (raw)
In-Reply-To: <151964991129.28549.5478247975928036472.stgit@localhost.localdomain>

These pernet_operations just create and destroy /proc entries,
and they can safely marked as async:

pppoe_net_ops
vlan_net_ops
canbcm_pernet_ops
kcm_net_ops
pfkey_net_ops
pppol2tp_net_ops
phonet_net_ops

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 drivers/net/ppp/pppoe.c |    1 +
 net/8021q/vlan.c        |    1 +
 net/can/bcm.c           |    1 +
 net/kcm/kcmproc.c       |    1 +
 net/key/af_key.c        |    1 +
 net/l2tp/l2tp_ppp.c     |    1 +
 net/phonet/pn_dev.c     |    1 +
 7 files changed, 7 insertions(+)

diff --git a/drivers/net/ppp/pppoe.c b/drivers/net/ppp/pppoe.c
index bd89d1c559ce..c10e6181a2f0 100644
--- a/drivers/net/ppp/pppoe.c
+++ b/drivers/net/ppp/pppoe.c
@@ -1161,6 +1161,7 @@ static struct pernet_operations pppoe_net_ops = {
 	.exit = pppoe_exit_net,
 	.id   = &pppoe_net_id,
 	.size = sizeof(struct pppoe_net),
+	.async = true,
 };
 
 static int __init pppoe_init(void)
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c
index bad01b14a4ad..bd0ed39f65fb 100644
--- a/net/8021q/vlan.c
+++ b/net/8021q/vlan.c
@@ -729,6 +729,7 @@ static struct pernet_operations vlan_net_ops = {
 	.exit = vlan_exit_net,
 	.id   = &vlan_net_id,
 	.size = sizeof(struct vlan_net),
+	.async = true,
 };
 
 static int __init vlan_proto_init(void)
diff --git a/net/can/bcm.c b/net/can/bcm.c
index ac5e5e34fee3..26730d39e048 100644
--- a/net/can/bcm.c
+++ b/net/can/bcm.c
@@ -1717,6 +1717,7 @@ static void canbcm_pernet_exit(struct net *net)
 static struct pernet_operations canbcm_pernet_ops __read_mostly = {
 	.init = canbcm_pernet_init,
 	.exit = canbcm_pernet_exit,
+	.async = true,
 };
 
 static int __init bcm_module_init(void)
diff --git a/net/kcm/kcmproc.c b/net/kcm/kcmproc.c
index 9d5649e4e8b7..2c1c8b3e4452 100644
--- a/net/kcm/kcmproc.c
+++ b/net/kcm/kcmproc.c
@@ -433,6 +433,7 @@ static void kcm_proc_exit_net(struct net *net)
 static struct pernet_operations kcm_net_ops = {
 	.init = kcm_proc_init_net,
 	.exit = kcm_proc_exit_net,
+	.async = true,
 };
 
 int __init kcm_proc_init(void)
diff --git a/net/key/af_key.c b/net/key/af_key.c
index 7e2e7188e7f4..3ac08ab26207 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -3863,6 +3863,7 @@ static struct pernet_operations pfkey_net_ops = {
 	.exit = pfkey_net_exit,
 	.id   = &pfkey_net_id,
 	.size = sizeof(struct netns_pfkey),
+	.async = true,
 };
 
 static void __exit ipsec_pfkey_exit(void)
diff --git a/net/l2tp/l2tp_ppp.c b/net/l2tp/l2tp_ppp.c
index 99a03c72db4f..0c4f49a6a0cb 100644
--- a/net/l2tp/l2tp_ppp.c
+++ b/net/l2tp/l2tp_ppp.c
@@ -1770,6 +1770,7 @@ static struct pernet_operations pppol2tp_net_ops = {
 	.init = pppol2tp_init_net,
 	.exit = pppol2tp_exit_net,
 	.id   = &pppol2tp_net_id,
+	.async = true,
 };
 
 /*****************************************************************************
diff --git a/net/phonet/pn_dev.c b/net/phonet/pn_dev.c
index 77787512fc32..9454e8393793 100644
--- a/net/phonet/pn_dev.c
+++ b/net/phonet/pn_dev.c
@@ -342,6 +342,7 @@ static struct pernet_operations phonet_net_ops = {
 	.exit = phonet_exit_net,
 	.id   = &phonet_net_id,
 	.size = sizeof(struct phonet_net),
+	.async = true,
 };
 
 /* Initialize Phonet devices list */

  reply	other threads:[~2018-02-26 12:59 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-26 12:59 [PATCH net-next 00/28] Converting pernet_operations (part #3) Kirill Tkhai
2018-02-26 12:59 ` Kirill Tkhai [this message]
2018-02-26 12:59 ` [PATCH net-next 02/28] net: Convert hashlimit_net_ops and recent_net_ops Kirill Tkhai
2018-02-26 12:59 ` [PATCH net-next 03/28] net: Convert synproxy_net_ops Kirill Tkhai
2018-02-26 12:59 ` [PATCH net-next 04/28] net: Convert nfs_net_ops Kirill Tkhai
2018-02-26 12:59 ` [PATCH net-next 05/28] net: Convert simple pernet_operations Kirill Tkhai
2018-02-26 13:00 ` [PATCH net-next 06/28] net: Convert cma_pernet_operations Kirill Tkhai
2018-02-26 13:00 ` [PATCH net-next 07/28] net: Convert sysctl creating and destroying pernet_operations Kirill Tkhai
2018-02-26 13:00 ` [PATCH net-next 08/28] net: Convert tc_action_net_init() and tc_action_net_exit() based pernet_operations Kirill Tkhai
2018-02-26 13:00 ` [PATCH net-next 09/28] net: Convert bond_net_ops Kirill Tkhai
2018-02-26 13:00 ` [PATCH net-next 10/28] net: Convert geneve_net_ops Kirill Tkhai
2018-02-26 13:01 ` [PATCH net-next 11/28] net: Convert gtp_net_ops Kirill Tkhai
2018-02-26 13:01 ` [PATCH net-next 12/28] net: Convert ppp_net_ops Kirill Tkhai
2018-02-26 13:01 ` [PATCH net-next 13/28] net: Convert vxlan_net_ops Kirill Tkhai
2018-02-26 13:01 ` [PATCH net-next 14/28] net: Convert br_net_ops Kirill Tkhai
2018-02-26 13:01 ` [PATCH net-next 15/28] net: Convert ipgre_net_ops, ipgre_tap_net_ops, erspan_net_ops, vti_net_ops and ipip_net_ops Kirill Tkhai
2018-02-26 13:02 ` [PATCH net-next 16/28] net: Convert ip6gre_net_ops Kirill Tkhai
2018-02-26 13:02 ` [PATCH net-next 17/28] net: Convert ip6_tnl_net_ops Kirill Tkhai
2018-02-26 13:02 ` [PATCH net-next 18/28] net: Convert vti6_net_ops Kirill Tkhai
2018-02-26 13:02 ` [PATCH net-next 19/28] net: Convert sit_net_ops Kirill Tkhai
2018-02-26 13:02 ` [PATCH net-next 20/28] net: Convert cfg802154_pernet_ops Kirill Tkhai
2018-02-27 10:24   ` Stefan Schmidt
2018-02-26 13:02 ` [PATCH net-next 21/28] net: Convert ipvlan_net_ops Kirill Tkhai
2018-02-26 13:02 ` [PATCH net-next 22/28] net: Convert brnf_net_ops Kirill Tkhai
2018-02-26 13:03 ` [PATCH net-next 23/28] net: Convert clusterip_net_ops Kirill Tkhai
2018-02-26 13:03 ` [PATCH net-next 24/28] net: Convert defrag4_net_ops Kirill Tkhai
2018-02-26 13:03 ` [PATCH net-next 25/28] net: Convert ila_net_ops Kirill Tkhai
2018-02-26 13:03 ` [PATCH net-next 26/28] net: Convert defrag6_net_ops Kirill Tkhai
2018-02-26 13:03 ` [PATCH net-next 27/28] net: Convert selinux_net_ops Kirill Tkhai
2018-02-26 13:04 ` [PATCH net-next 28/28] net: Convert smack_net_ops Kirill Tkhai
2018-02-27 16:08 ` [PATCH net-next 00/28] Converting pernet_operations (part #3) 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=151964995937.28549.1017724517145961149.stgit@localhost.localdomain \
    --to=ktkhai@virtuozzo.com \
    --cc=alex.aring@gmail.com \
    --cc=avagin@virtuozzo.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=fw@strlen.de \
    --cc=jhs@mojatatu.com \
    --cc=jiri@resnulli.us \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=kvalo@codeaurora.org \
    --cc=mostrows@earthlink.net \
    --cc=netdev@vger.kernel.org \
    --cc=pablo@netfilter.org \
    --cc=stefan@osg.samsung.com \
    --cc=xiyou.wangcong@gmail.com \
    /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