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

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

net: Convert subsys_initcall() registered pernet_operations from net/sched



psched_net_ops only creates and destroyes /proc entry,
and safe to be executed in parallel with any foreigh
pernet_operations.

tcf_action_net_ops initializes and destructs tcf_action_net::egdev_ht,
which is not touched by foreign 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 86b63418
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1454,6 +1454,7 @@ static struct pernet_operations tcf_action_net_ops = {
	.exit = tcf_action_net_exit,
	.id = &tcf_action_net_id,
	.size = sizeof(struct tcf_action_net),
	.async = true,
};

static int __init tc_action_init(void)
+1 −0
Original line number Diff line number Diff line
@@ -2128,6 +2128,7 @@ static void __net_exit psched_net_exit(struct net *net)
static struct pernet_operations psched_net_ops = {
	.init = psched_net_init,
	.exit = psched_net_exit,
	.async = true,
};

static int __init pktsched_init(void)