]> 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)
commit46bc003a0ba2fb66b9d108ecc896c0ccf5ac6d52
treeb82df7e17ae41b3b88029354d9587fd2e09cdcd0
parent14f289555ea59fd61ce8ba96ebc0469efdacf949
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