Skip to content

Commit

Permalink
net: Convert net_defaults_ops
Browse files Browse the repository at this point in the history
net_defaults_ops introduce only net_defaults_init_net method,
and it acts on net::core::sysctl_somaxconn, which
is not interesting for the rest of pernet_subsys and
pernet_device lists. Then, make them async.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Kirill Tkhai authored and David S. Miller committed Feb 13, 2018
1 parent 604da74 commit ff291d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/core/net_namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ static int __net_init net_defaults_init_net(struct net *net)

static struct pernet_operations net_defaults_ops = {
.init = net_defaults_init_net,
.async = true,
};

static __init int net_defaults_init(void)
Expand Down

0 comments on commit ff291d0

Please sign in to comment.