mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
net: Convert sctp_defaults_ops
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>
This commit is contained in:
parent
d98985dd6c
commit
2e01ae0ef2
1 changed files with 1 additions and 0 deletions
|
@ -1330,6 +1330,7 @@ static void __net_exit sctp_defaults_exit(struct net *net)
|
||||||
static struct pernet_operations sctp_defaults_ops = {
|
static struct pernet_operations sctp_defaults_ops = {
|
||||||
.init = sctp_defaults_init,
|
.init = sctp_defaults_init,
|
||||||
.exit = sctp_defaults_exit,
|
.exit = sctp_defaults_exit,
|
||||||
|
.async = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __net_init sctp_ctrlsock_init(struct net *net)
|
static int __net_init sctp_ctrlsock_init(struct net *net)
|
||||||
|
|
Loading…
Reference in a new issue