]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ipv4: route: set ipv4 RTM_GETROUTE to not use rtnl
authorFlorian Westphal <fw@strlen.de>
Tue, 15 Aug 2017 14:34:44 +0000 (16:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Aug 2017 00:20:55 +0000 (17:20 -0700)
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c

index 6810d2076b1baed40a466518347bf559f720a0fc..618bbe1405fc57dfe8d9632f94a97fc9dd9f2a08 100644 (file)
@@ -3073,7 +3073,8 @@ int __init ip_rt_init(void)
        xfrm_init();
        xfrm4_init();
 #endif
-       rtnl_register(PF_INET, RTM_GETROUTE, inet_rtm_getroute, NULL, 0);
+       rtnl_register(PF_INET, RTM_GETROUTE, inet_rtm_getroute, NULL,
+                     RTNL_FLAG_DOIT_UNLOCKED);
 
 #ifdef CONFIG_SYSCTL
        register_pernet_subsys(&sysctl_route_ops);