]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: addrconf: don't use rtnl mutex in RTM_GETNETCONF
authorFlorian Westphal <fw@strlen.de>
Wed, 11 Oct 2017 08:28:00 +0000 (10:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Oct 2017 03:17:03 +0000 (20:17 -0700)
commit4b7d2e48798e1f4d29e306e39782708b903c0272
treeb82df7e17ae41b3b88029354d9587fd2e09cdcd0
parent7f1980cb2396713af559d0e33de4ea43522b0d0d
ipv6: addrconf: don't use rtnl mutex in RTM_GETNETCONF

Instead of relying on rtnl mutex bump device reference count.
After this change, values reported can change in parallel, but thats not
much different from current state, as anyone can change the settings
right after rtnl_unlock (and before userspace processed reply).

While at it, switch to GFP_KERNEL allocation.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c