Skip to content

net: complete dev_base_lock removal

Eric Dumazet netdev 5 versions – 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 · linked by author and title

  1. v4 Latest posting 2/213 patches 0 repliesApplied 13/13
  2. v4 posting 1/21 of 13 patches 0 repliesSuperseded
  3. v313 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v213 patches1 replySuperseded
v113 patches1 replySuperseded

Patches in v4 posting 2/2 All 13 applied

#Subject and filesSizeRepliesApplied
1/13net: annotate data-races around dev->name_assign_typenet/core/dev.c net/core/net-sysfs.c+5 -50 repliesApplied
2/13ip_tunnel: annotate data-races around t->parms.linknet/ipv4/ip_tunnel.c+13 -140 repliesApplied
3/13dev: annotate accesses to dev->linknet/core/rtnetlink.c+1 -10 repliesApplied
4/13net: convert dev->reg_state to u8include/linux/netdevice.h net/core/dev.c+18 -130 repliesApplied
5/13net-sysfs: convert netdev_show() to RCUnet/core/net-sysfs.c+10 -70 repliesApplied
6/13net-sysfs: use dev_addr_sem to remove races in address_show()net/core/dev.c net/core/dev.h net/core/net-sysfs.c+11 -40 repliesApplied
7/13net-sysfs: convert dev->operstate reads to lockless onesnet/bridge/br_netlink.c net/core/link_watch.c net/core/net-sysfs.c +3 more+13 -140 repliesApplied
8/13net-sysfs: convert netstat_show() to RCUnet/core/net-sysfs.c+3 -30 repliesApplied
9/13net: remove stale mentions of dev_base_lock in commentsDocumentation/networking/netdevices.rst drivers/net/ethernet/cisco/enic/enic_main.c drivers/net/ethernet/nvidia/forcedeth.c +3 more+8 -80 repliesApplied
10/13net: add netdev_set_operstate() helperinclude/linux/netdevice.h include/linux/rtnetlink.h net/core/link_watch.c +2 more+26 -310 repliesApplied
11/13net: remove dev_base_lock from do_setlink()net/core/rtnetlink.c+0 -20 repliesApplied
12/13net: remove dev_base_lock from register_netdevice() and friends.net/core/dev.c+7 -130 repliesApplied
13/13net: remove dev_base_lockinclude/linux/netdevice.h net/core/dev.c+4 -370 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 net-next 00/13] net: complete dev_base_lock removal

Back in 2009 we started an effort to get rid of dev_base_lock in favor of RCU.

It is time to finish this work.

Say goodbye to dev_base_lock !

v4: rebase, and move dev_addr_sem to net/core/dev.h in patch 06/13 (Jakub)

v3: I misread kbot reports, the issue was with dev->operstate (patch 10/13)
So dev->reg_state is back to u8, and dev->operstate becomes an u32. Sorry for the noise.

v2: dev->reg_state must be a standard enum, some arches
do not support cmpxchg() on u8.

Eric Dumazet (13):
net: annotate data-races around dev->name_assign_type
ip_tunnel: annotate data-races around t->parms.link
dev: annotate accesses to dev->link
net: convert dev->reg_state to u8
net-sysfs: convert netdev_show() to RCU
net-sysfs: use dev_addr_sem to remove races in address_show()
net-sysfs: convert dev->operstate reads to lockless ones
net-sysfs: convert netstat_show() to RCU
net: remove stale mentions of dev_base_lock in comments
net: add netdev_set_operstate() helper
net: remove dev_base_lock from do_setlink()
net: remove dev_base_lock from register_netdevice() and friends.
net: remove dev_base_lock

 Documentation/networking/netdevices.rst     |  4 +-
 drivers/net/ethernet/cisco/enic/enic_main.c |  2 +-
 drivers/net/ethernet/nvidia/forcedeth.c     |  4 +-
 drivers/net/ethernet/sfc/efx_common.c       |  2 +-
 drivers/net/ethernet/sfc/falcon/efx.c       |  2 +-
 drivers/net/ethernet/sfc/siena/efx_common.c |  2 +-
 include/linux/netdevice.h                   | 27 ++++----
 include/linux/rtnetlink.h                   |  2 +
 net/bridge/br_netlink.c                     |  3 +-
 net/core/dev.c                              | 71 +++++----------------
 net/core/dev.h                              |  3 +
 net/core/link_watch.c                       | 13 ++--
 net/core/net-sysfs.c                        | 39 ++++++-----
 net/core/rtnetlink.c                        | 26 +++++---
 net/hsr/hsr_device.c                        | 28 +++-----
 net/ipv4/ip_tunnel.c                        | 27 ++++----
 net/ipv6/addrconf.c                         |  2 +-
 17 files changed, 112 insertions(+), 145 deletions(-)
Signature · 1 line
2.43.0.687.g38aa6559b0-goog