diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-02-13 12:27:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-13 10:36:06 -0500 |
commit | 604da74e4fc1c2afc50dc7a1850acfd9aff2b58d (patch) | |
tree | a4088fd6140f6c3c86a34e252516aeb5512bd29a /net/core/sock.c | |
parent | c9d8fb91351fe1514731b7f6d24d4decc0028978 (diff) | |
download | linux-stable-604da74e4fc1c2afc50dc7a1850acfd9aff2b58d.tar.gz linux-stable-604da74e4fc1c2afc50dc7a1850acfd9aff2b58d.tar.bz2 linux-stable-604da74e4fc1c2afc50dc7a1850acfd9aff2b58d.zip |
net: Convert net_inuse_ops
net_inuse_ops methods expose statistics in /proc.
No one from the rest of pernet_subsys or pernet_device
lists touch net::core::inuse.
So, it's safe to make net_inuse_ops 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/core/sock.c')
-rw-r--r-- | net/core/sock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index 04e5e27c9b81..f2bf69b86c58 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -3112,6 +3112,7 @@ static void __net_exit sock_inuse_exit_net(struct net *net) static struct pernet_operations net_inuse_ops = { .init = sock_inuse_init_net, .exit = sock_inuse_exit_net, + .async = true, }; static __init int net_inuse_init(void) |