Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

net: Convert pernet_subsys ops, registered via net_dev_init()



There are:
1)dev_proc_ops and dev_mc_net_ops, which create and destroy
pernet proc file and not interesting for another net namespaces;
2)netdev_net_ops, which creates pernet hashes, which are not
touched by another pernet_operations.

So, make them async.

Signed-off-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: default avatarAndrei Vagin <avagin@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 36b0068e
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -8833,6 +8833,7 @@ static void __net_exit netdev_exit(struct net *net)
static struct pernet_operations __net_initdata netdev_net_ops = {
static struct pernet_operations __net_initdata netdev_net_ops = {
	.init = netdev_init,
	.init = netdev_init,
	.exit = netdev_exit,
	.exit = netdev_exit,
	.async = true,
};
};


static void __net_exit default_device_exit(struct net *net)
static void __net_exit default_device_exit(struct net *net)
+2 −0
Original line number Original line Diff line number Diff line
@@ -349,6 +349,7 @@ static void __net_exit dev_proc_net_exit(struct net *net)
static struct pernet_operations __net_initdata dev_proc_ops = {
static struct pernet_operations __net_initdata dev_proc_ops = {
	.init = dev_proc_net_init,
	.init = dev_proc_net_init,
	.exit = dev_proc_net_exit,
	.exit = dev_proc_net_exit,
	.async = true,
};
};


static int dev_mc_seq_show(struct seq_file *seq, void *v)
static int dev_mc_seq_show(struct seq_file *seq, void *v)
@@ -405,6 +406,7 @@ static void __net_exit dev_mc_net_exit(struct net *net)
static struct pernet_operations __net_initdata dev_mc_net_ops = {
static struct pernet_operations __net_initdata dev_mc_net_ops = {
	.init = dev_mc_net_init,
	.init = dev_mc_net_init,
	.exit = dev_mc_net_exit,
	.exit = dev_mc_net_exit,
	.async = true,
};
};


int __init dev_proc_init(void)
int __init dev_proc_init(void)