Commit 155549a6 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

ipv6: remove RTNL protection from inet6_dump_addr()

We can now remove RTNL acquisition while running
inet6_dump_addr(), inet6_dump_ifmcaddr()
and inet6_dump_ifacaddr().
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9cc4cc32
...@@ -7454,15 +7454,18 @@ int __init addrconf_init(void) ...@@ -7454,15 +7454,18 @@ int __init addrconf_init(void)
goto errout; goto errout;
err = rtnl_register_module(THIS_MODULE, PF_INET6, RTM_GETADDR, err = rtnl_register_module(THIS_MODULE, PF_INET6, RTM_GETADDR,
inet6_rtm_getaddr, inet6_dump_ifaddr, inet6_rtm_getaddr, inet6_dump_ifaddr,
RTNL_FLAG_DOIT_UNLOCKED); RTNL_FLAG_DOIT_UNLOCKED |
RTNL_FLAG_DUMP_UNLOCKED);
if (err < 0) if (err < 0)
goto errout; goto errout;
err = rtnl_register_module(THIS_MODULE, PF_INET6, RTM_GETMULTICAST, err = rtnl_register_module(THIS_MODULE, PF_INET6, RTM_GETMULTICAST,
NULL, inet6_dump_ifmcaddr, 0); NULL, inet6_dump_ifmcaddr,
RTNL_FLAG_DUMP_UNLOCKED);
if (err < 0) if (err < 0)
goto errout; goto errout;
err = rtnl_register_module(THIS_MODULE, PF_INET6, RTM_GETANYCAST, err = rtnl_register_module(THIS_MODULE, PF_INET6, RTM_GETANYCAST,
NULL, inet6_dump_ifacaddr, 0); NULL, inet6_dump_ifacaddr,
RTNL_FLAG_DUMP_UNLOCKED);
if (err < 0) if (err < 0)
goto errout; goto errout;
err = rtnl_register_module(THIS_MODULE, PF_INET6, RTM_GETNETCONF, err = rtnl_register_module(THIS_MODULE, PF_INET6, RTM_GETNETCONF,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment