netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] ipv6: addrconf: make two more doit functions not use rtnl mutex
@ 2017-10-11  8:27 Florian Westphal
  2017-10-11  8:28 ` [PATCH net-next 1/2] ipv6: addrconf: don't use rtnl mutex in RTM_GETNETCONF Florian Westphal
  2017-10-11  8:28 ` [PATCH net-next 2/2] ipv6: addrconf: don't use rtnl mutex in RTM_GETADDR Florian Westphal
  0 siblings, 2 replies; 5+ messages in thread
From: Florian Westphal @ 2017-10-11  8:27 UTC (permalink / raw)
  To: netdev

ipv6 RTM_GETNETCONF and RTM_GETADDR don't seem to require strict
serialization via rtnl mutex, so switch both to DOIT_UNLOCKED and increment
device reference counts instead.

Alternative would be to use rcu which would need some minor
code re-arrangements (we can't use GFP_ATOMIC for buffer allocation in that
case).

 addrconf.c |   38 +++++++++++++++++++++-----------------
 1 file changed, 21 insertions(+), 17 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-12  3:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-11  8:27 [PATCH net-next 0/2] ipv6: addrconf: make two more doit functions not use rtnl mutex Florian Westphal
2017-10-11  8:28 ` [PATCH net-next 1/2] ipv6: addrconf: don't use rtnl mutex in RTM_GETNETCONF Florian Westphal
2017-10-12  3:17   ` David Miller
2017-10-11  8:28 ` [PATCH net-next 2/2] ipv6: addrconf: don't use rtnl mutex in RTM_GETADDR Florian Westphal
2017-10-12  3:17   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).