Skip to content

bonding: rcu cleanups

Eric Dumazet netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesIn review
  2. v13 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4bonding: get rid of bond_option_active_slave_get()drivers/net/bonding/bond_netlink.c drivers/net/bonding/bond_options.c drivers/net/bonding/bonding.h+16 -110 replies
2/4bonding: use rcu_access_pointer() in bonding_show_mii_status()drivers/net/bonding/bond_sysfs.c+2 -10 replies
3/4bonding: add proper __rcu annotation for curr_active_slavedrivers/net/bonding/bond_alb.c drivers/net/bonding/bond_main.c drivers/net/bonding/bond_options.c +1 more+63 -450 replies
4/4bonding: add proper __rcu annotation for current_arp_slavedrivers/net/bonding/bond_main.c drivers/net/bonding/bonding.h+10 -71 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchVeaceslav FalicoNikolay Aleksandrov
SeriesA-b
1/4A-b R-b
2/4A-b R-b
3/4A-b R-b
4/4R-b

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

Read the v2 thread

Cover letter [PATCH v2 net-next 0/4] bonding: rcu cleanups

RCU was added to bonding in linux-3.12 but lacked proper sparse annotations.

Using __rcu annotation actually helps to spot all accesses to bond->curr_active_slave & cond->current_arp_slave are correctly protected, with full sparse & LOCKDEP support.

Lets clean the code.

Eric Dumazet (4):
bonding: get rid of bond_option_active_slave_get()
bonding: use rcu_access_pointer() in bonding_show_mii_status()
bonding: add proper __rcu annotation for curr_active_slave
bonding: add proper __rcu annotation for current_arp_slave

 drivers/net/bonding/bond_alb.c     | 47 +++++++++++++++-----------
 drivers/net/bonding/bond_main.c    | 68 +++++++++++++++++++++-----------------
 drivers/net/bonding/bond_netlink.c | 21 +++++++++---
 drivers/net/bonding/bond_options.c |  7 +---
 drivers/net/bonding/bond_sysfs.c   |  3 +-
 drivers/net/bonding/bonding.h      |  9 +++--
 6 files changed, 91 insertions(+), 64 deletions(-)
Signature · 1 line
2.0.0.526.g5318336