Skip to content

net: avoid slow rcu synchronizations in cleanup_net()

Eric Dumazet netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 2 repliesApplied 6/6

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6ipv6: mcast: remove one synchronize_net() barrier in ipv6_mc_down()net/ipv6/mcast.c+0 -10 repliesApplied
2/6net: use synchronize_net() in dev_change_name()net/core/dev.c+1 -10 repliesApplied
3/6bridge: vlan: use synchronize_net() when holding RTNLnet/bridge/br_vlan.c+2 -21 replyApplied
4/6ipv4/fib: use synchronize_net() when holding RTNLnet/ipv4/fib_trie.c+1 -11 replyApplied
5/6net: use synchronize_rcu_expedited in cleanup_net()net/core/net_namespace.c+1 -10 repliesApplied
6/6netfilter: conntrack: expedite rcu in nf_conntrack_cleanup_net_listnet/netfilter/nf_conntrack_core.c+1 -10 repliesApplied

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchNikolay AleksandrovDavid Ahern
1/6
2/6
3/6A-b
4/6R-b
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/6] net: avoid slow rcu synchronizations in cleanup_net()

RTNL is a contended mutex, we prefer to expedite rcu synchronizations in contexts we hold RTNL.

Similarly, cleanup_net() is a single threaded critical component and should also use synchronize_rcu_expedited() even when not holding RTNL.

First patch removes a barrier with no clear purpose in ipv6_mc_down()

Eric Dumazet (6):
ipv6: mcast: remove one synchronize_net() barrier in ipv6_mc_down()
net: use synchronize_net() in dev_change_name()
bridge: vlan: use synchronize_net() when holding RTNL ipv4/fib: use synchronize_net() when holding RTNL
net: use synchronize_rcu_expedited in cleanup_net()
netfilter: conntrack: expedite rcu in nf_conntrack_cleanup_net_list

 net/bridge/br_vlan.c              | 4 ++--
 net/core/dev.c                    | 2 +-
 net/core/net_namespace.c          | 2 +-
 net/ipv4/fib_trie.c               | 2 +-
 net/ipv6/mcast.c                  | 1 -
 net/netfilter/nf_conntrack_core.c | 2 +-
 6 files changed, 6 insertions(+), 7 deletions(-)
Signature · 1 line
2.43.0.687.g38aa6559b0-goog