From: Kirill Tkhai Date: Wed, 7 Mar 2018 09:40:09 +0000 (+0300) Subject: net: Convert nfnl_queue_net_ops X-Git-Tag: Ubuntu-5.2.0-15.16~4716^2~250^2~8 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=bd54dce0796522b669f5be45b96e02fa94738de9;p=mirror_ubuntu-eoan-kernel.git net: Convert nfnl_queue_net_ops These pernet_operations register and unregister net::nf::queue_handler and /proc entry. The handler is accessed only under RCU, so this looks safe to convert them. Signed-off-by: Kirill Tkhai Signed-off-by: David S. Miller --- diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index 8bba23160a68..59e2833c17f1 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c @@ -1528,6 +1528,7 @@ static struct pernet_operations nfnl_queue_net_ops = { .exit_batch = nfnl_queue_net_exit_batch, .id = &nfnl_queue_net_id, .size = sizeof(struct nfnl_queue_net), + .async = true, }; static int __init nfnetlink_queue_init(void)