Commit c80afa02 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by David S. Miller
Browse files

net: Convert /proc creating and destroying pernet_operations



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: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7f897db3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)
+1 −0
Original line number Diff line number Diff line
@@ -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)
+1 −0
Original line number Diff line number Diff line
@@ -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)
+1 −0
Original line number Diff line number Diff line
@@ -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)
+1 −0
Original line number Diff line number Diff line
@@ -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)
Loading