phonet: Convert all doit() and dumpit() to RCU.
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 9 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | phonet: Pass ifindex to fill_addr().net/ | +7 | 1 reply | Applied |
| 2/9 | phonet: Pass net and ifindex to phonet_address_notify().include/ net/ net/ | +14 | 1 reply | Applied |
| 3/9 | phonet: Convert phonet_device_list.lock to spinlock_t.include/ net/ | +19 | 1 reply | Applied |
| 4/9 | phonet: Don't hold RTNL for addr_doit().net/ | +22 | 1 reply | Applied |
| 5/9 | phonet: Don't hold RTNL for getaddr_dumpit().net/ | +15 | 7 replies | Applied |
| 6/9 | phonet: Pass ifindex to fill_route().net/ | +6 | 1 reply | Applied |
| 7/9 | phonet: Pass net and ifindex to rtm_phonet_notify().include/ net/ net/ | +17 | 1 reply | Applied |
| 8/9 | phonet: Convert phonet_routes.lock to spinlock_t.include/ net/ | +14 | 1 reply | Applied |
| 9/9 | phonet: Don't hold RTNL for route_doit().net/ | +13 | 1 reply | Applied |
Reviews trailers per patch
All 9 patches have a Reviewed-by or Acked-by.
| Patch | Eric Dumazet |
|---|---|
| 1/9 | R-b |
| 2/9 | R-b |
| 3/9 | R-b |
| 4/9 | R-b |
| 5/9 | R-b |
| 6/9 | R-b |
| 7/9 | R-b |
| 8/9 | R-b |
| 9/9 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v1 net-next 0/9] phonet: Convert all doit() and dumpit() to RCU.
addr_doit() and route_doit() access only phonet_device_list(dev_net(dev)) and phonet_pernet(dev_net(dev))->routes, respectively.
Each per-netns struct has its dedicated mutex, and RTNL also protects the structs. __dev_change_net_namespace() has synchronize_net(), so we have two options to convert addr_doit() and route_doit().
1. Use per-netns RTNL
2. Use RCU and convert each struct mutex to spinlock_t
As RCU is preferable, this series converts all PF_PHONET's doit() and dumpit() to RCU.
4 doit()s and 1 dumpit() are now converted to RCU, 70 doit()s and 28 dumpit()s are still under RTNL.
Kuniyuki Iwashima (9):
phonet: Pass ifindex to fill_addr().
phonet: Pass net and ifindex to phonet_address_notify().
phonet: Convert phonet_device_list.lock to spinlock_t.
phonet: Don't hold RTNL for addr_doit().
phonet: Don't hold RTNL for getaddr_dumpit().
phonet: Pass ifindex to fill_route().
phonet: Pass net and ifindex to rtm_phonet_notify().
phonet: Convert phonet_routes.lock to spinlock_t.
phonet: Don't hold RTNL for route_doit().
include/net/phonet/pn_dev.h | 8 +-- net/phonet/pn_dev.c | 69 ++++++++++++++-------- net/phonet/pn_netlink.c | 115 ++++++++++++++++++++++-------------- 3 files changed, 120 insertions(+), 72 deletions(-)
Signature · 1 line
2.39.5 (Apple Git-154)