]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
net: Convert sctp_defaults_ops
authorKirill Tkhai <ktkhai@virtuozzo.com>
Tue, 13 Mar 2018 10:36:51 +0000 (13:36 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Mar 2018 15:24:56 +0000 (11:24 -0400)
These pernet_operations have a deal with sysctl, /proc
entries and statistics. Also, there are freeing of
net::sctp::addr_waitq queue and net::sctp::local_addr_list
in exit method. All of them look pernet-divided, and it
seems these items are only interesting for sctp_defaults_ops,
which are safe to be executed in parallel.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/protocol.c

index 91813e686c6737aaf20ca1ea2f3978a833c5eff6..32be52304f98235613fbca0704585939f736304f 100644 (file)
@@ -1330,6 +1330,7 @@ static void __net_exit sctp_defaults_exit(struct net *net)
 static struct pernet_operations sctp_defaults_ops = {
        .init = sctp_defaults_init,
        .exit = sctp_defaults_exit,
+       .async = true,
 };
 
 static int __net_init sctp_ctrlsock_init(struct net *net)