diff options
author | 2017-10-16 15:44:36 +0200 | |
---|---|---|
committer | 2017-10-16 21:26:40 +0100 | |
commit | 5fa85a09390c4a525cb4d06a0c4644b01a47976b (patch) | |
tree | 83d6e4eee4a33ccd89af13691b484c59489d4f7f /net/lapb/lapb_timer.c | |
parent | rtnetlink: place link af dump into own helper (diff) | |
download | wireguard-linux-5fa85a09390c4a525cb4d06a0c4644b01a47976b.tar.xz wireguard-linux-5fa85a09390c4a525cb4d06a0c4644b01a47976b.zip |
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>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions