diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-03-07 12:41:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-08 12:36:45 -0500 |
commit | e8a95ad46378162f22c9293bde276d7c4030f31e (patch) | |
tree | 4303652fed116c4692a9ac6770cdabe9d06b03be /net | |
parent | 8dbc6e2eaeccccecd23888bd14c10a2c384c280f (diff) | |
download | linux-e8a95ad46378162f22c9293bde276d7c4030f31e.tar.bz2 |
net: Convert ipv4_net_ops
These pernet_operations register and unregister bunch
of nf_conntrack_l4proto. Exit method unregisters related
sysctl, init method calls init_net and get_net_proto.
The whole builtin_l4proto4 array has pretty simple
init_net and get_net_proto methods. The first one register
sysctl table, the second one is just RO memory dereference.
So, these pernet_operations are safe to be marked as async.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c index b50721d9d30e..6531f69db010 100644 --- a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c +++ b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c @@ -399,6 +399,7 @@ static struct pernet_operations ipv4_net_ops = { .exit = ipv4_net_exit, .id = &conntrack4_net_id, .size = sizeof(struct conntrack4_net), + .async = true, }; static int __init nf_conntrack_l3proto_ipv4_init(void) |