bonding: remove RTNL from three sysfs files
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
Patches in v1 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | bonding: no longer use RTNL in bonding_show_bonds()drivers/ drivers/ | +6 | 1 reply | Applied |
| 2/3 | bonding: no longer use RTNL in bonding_show_slaves()drivers/ | +3 | 1 reply | Applied |
| 3/3 | bonding: no longer use RTNL in bonding_show_queue_id()drivers/ drivers/ drivers/ +3 more | +11 | 3 replies | Applied |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Jay Vosburgh |
|---|---|
| 1/3 | A-b |
| 2/3 | A-b |
| 3/3 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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