net: skip taking rtnl_lock for queue GET
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest11 patches 6 repliesIn review 6 of 11 applied
- v111 patches 2 repliesSuperseded
Changes in v2 from the cover letter
- rebase
- only clear XSK if netdev still set
v1: https://lore.kernel.org/[email protected]
Patches in v2 6 of 11 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | net: bubble up taking netdev instance lock to callers of net_devmem_unbind_dmabuf()net/ net/ | +2 | 1 reply | Applied |
| 2/11 | net: remove netif_set_real_num_rx_queues() helper for when SYSFS=ninclude/ net/ | +0 | 0 replies | Applied |
| 3/11 | net: constify dev pointer in misc instance lock helpersinclude/ | +5 | 0 replies | Applied |
| 4/11 | net: explain "protection types" for the instance lockinclude/ include/ | +21 | 0 replies | |
| 5/11 | net: designate queue counts as "double ops protected" by instance lockinclude/ net/ net/ +2 more | +17 | 0 replies | Applied |
| 6/11 | net: designate queue -> napi linking as "ops protected"include/ include/ include/ +1 more | +13 | 0 replies | Applied |
| 7/11 | net: protect rxq->mp_params with the instance locknet/ net/ | +4 | 2 replies | Applied |
| 8/11 | net: make NETDEV_UNREGISTER and instance lock more consistentnet/ | +8 | 2 replies | |
| 9/11 | net: designate XSK pool pointers in queues as "ops protected"include/ include/ net/ | +10 | 0 replies | |
| 10/11 | netdev: add "ops compat locking" helpersinclude/ net/ net/ | +80 | 0 replies | |
| 11/11 | netdev: don't hold rtnl_lock over nl queue info get when possiblenet/ | +7 | 0 replies |
Reviews trailers per patch
2 of 11 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Stanislav Fomichev | Mina Almasry |
|---|---|---|
| Series | A-b | |
| 1/11 | R-b | |
| 2/11 | ||
| 3/11 | ||
| 4/11 | ||
| 5/11 | ||
| 6/11 | ||
| 7/11 | R-b | |
| 8/11 | ||
| 9/11 | ||
| 10/11 | ||
| 11/11 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next v2 00/11] net: skip taking rtnl_lock for queue GET
Skip taking rtnl_lock for queue GET ops on devices which opt into running all ops under the instance lock.
This fixes and completes Stan's ops-locking work, so I think for sanity / ease of backporting fixes we should merge it for v6.15.
v2:
- rebase
- only clear XSK if netdev still set
v1: https://lore.kernel.org/[email protected]
Jakub Kicinski (11):
net: bubble up taking netdev instance lock to callers of
net_devmem_unbind_dmabuf()
net: remove netif_set_real_num_rx_queues() helper for when SYSFS=n
net: constify dev pointer in misc instance lock helpers
net: explain "protection types" for the instance lock
net: designate queue counts as "double ops protected" by instance lock
net: designate queue -> napi linking as "ops protected"
net: protect rxq->mp_params with the instance lock
net: make NETDEV_UNREGISTER and instance lock more consistent
net: designate XSK pool pointers in queues as "ops protected"
netdev: add "ops compat locking" helpers
netdev: don't hold rtnl_lock over nl queue info get when possible
include/linux/netdevice.h | 41 ++++++++++++--------- include/net/netdev_lock.h | 36 ++++++++++++++++-- include/net/netdev_rx_queue.h | 6 +-- net/core/dev.h | 15 ++++++++ net/core/dev.c | 69 +++++++++++++++++++++++++++++++---- net/core/devmem.c | 2 - net/core/net-sysfs.c | 2 + net/core/netdev-genl.c | 27 ++++++++------ net/core/netdev_rx_queue.c | 3 ++ net/core/page_pool.c | 7 +--- net/xdp/xsk_buff_pool.c | 7 +++- 11 files changed, 165 insertions(+), 50 deletions(-)
Signature · 1 line
2.49.0