Home
last modified time | relevance | path

Searched hist:"5 fa85a09390c4a525cb4d06a0c4644b01a47976b" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/net/ipv4/
H A Ddevinet.cdiff 5fa85a09390c4a525cb4d06a0c4644b01a47976b Mon Oct 16 08:44:36 CDT 2017 Florian Westphal <fw@strlen.de> net: core: rcu-ify rtnl af_ops

rtnl af_ops currently rely on rtnl mutex: unregister (called from module
exit functions) takes the rtnl mutex and all users that do af_ops lookup
also take the rtnl mutex. IOW, parallel rmmod will block until doit()
callback is done.

As none of the af_ops implementation sleep we can use rcu instead.

doit functions that need the af_ops can now use rcu instead of the
rtnl mutex provided the mutex isn't needed for other reasons.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
/openbmc/linux/net/core/
H A Drtnetlink.cdiff 5fa85a09390c4a525cb4d06a0c4644b01a47976b Mon Oct 16 08:44:36 CDT 2017 Florian Westphal <fw@strlen.de> net: core: rcu-ify rtnl af_ops

rtnl af_ops currently rely on rtnl mutex: unregister (called from module
exit functions) takes the rtnl mutex and all users that do af_ops lookup
also take the rtnl mutex. IOW, parallel rmmod will block until doit()
callback is done.

As none of the af_ops implementation sleep we can use rcu instead.

doit functions that need the af_ops can now use rcu instead of the
rtnl mutex provided the mutex isn't needed for other reasons.

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