diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-02-13 04:30:00 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-13 10:36:08 -0500 |
commit | 167f7ac723e5b4ea22c44a0bd8e357bb76a68cd2 (patch) | |
tree | 68706d6db9e5611a2cf8819ec80edf97f9351f14 /net/unix/af_unix.c | |
parent | f84c6821aa540342360067604ad156e3d53a67ed (diff) |
net: Convert unix_net_ops
These pernet_operations are just create and destroy
/proc and sysctl entries, and are not touched by
foreign pernet_operations.
So, we are able to 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>
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r-- | net/unix/af_unix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 723698416242..e3eb8806b3e4 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c | |||
@@ -2913,6 +2913,7 @@ static void __net_exit unix_net_exit(struct net *net) | |||
2913 | static struct pernet_operations unix_net_ops = { | 2913 | static struct pernet_operations unix_net_ops = { |
2914 | .init = unix_net_init, | 2914 | .init = unix_net_init, |
2915 | .exit = unix_net_exit, | 2915 | .exit = unix_net_exit, |
2916 | .async = true, | ||
2916 | }; | 2917 | }; |
2917 | 2918 | ||
2918 | static int __init af_unix_init(void) | 2919 | static int __init af_unix_init(void) |