Skip to content

bonding: remove RTNL from three sysfs files

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 Latest3 patches 5 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3bonding: no longer use RTNL in bonding_show_bonds()drivers/net/bonding/bond_main.c drivers/net/bonding/bond_sysfs.c+6 -61 replyApplied
2/3bonding: no longer use RTNL in bonding_show_slaves()drivers/net/bonding/bond_sysfs.c+3 -41 replyApplied
3/3bonding: no longer use RTNL in bonding_show_queue_id()drivers/net/bonding/bond_main.c drivers/net/bonding/bond_netlink.c drivers/net/bonding/bond_options.c +3 more+11 -103 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJay Vosburgh
1/3A-b
2/3A-b
3/3A-b

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/3] bonding: remove RTNL from three sysfs files

First patch might fix a potential deadlock.
sysfs handlers should use rtnl_trylock() instead of rtnl_lock().

Following files can be read without acquiring RTNL :

- /sys/class/net/bonding_masters
- /sys/class/net/<name>/bonding/slaves
- /sys/class/net/<name>/bonding/queue_id

Eric Dumazet (3):
bonding: no longer use RTNL in bonding_show_bonds()
bonding: no longer use RTNL in bonding_show_slaves()
bonding: no longer use RTNL in bonding_show_queue_id()

 drivers/net/bonding/bond_main.c        |  6 +++---
 drivers/net/bonding/bond_netlink.c     |  3 ++-
 drivers/net/bonding/bond_options.c     |  2 +-
 drivers/net/bonding/bond_procfs.c      |  2 +-
 drivers/net/bonding/bond_sysfs.c       | 25 ++++++++++++-------------
 drivers/net/bonding/bond_sysfs_slave.c |  2 +-
 6 files changed, 20 insertions(+), 20 deletions(-)
Signature · 1 line
2.44.0.478.gd926399ef9-goog