Skip to content

net: skip taking rtnl_lock for queue GET

Jakub Kicinski netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 6 repliesIn review 6 of 11 applied
  2. 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 filesSizeRepliesApplied
1/11net: bubble up taking netdev instance lock to callers of net_devmem_unbind_dmabuf()net/core/devmem.c net/core/netdev-genl.c+2 -21 replyApplied
2/11net: remove netif_set_real_num_rx_queues() helper for when SYSFS=ninclude/linux/netdevice.h net/core/dev.c+0 -120 repliesApplied
3/11net: constify dev pointer in misc instance lock helpersinclude/net/netdev_lock.h+5 -40 repliesApplied
4/11net: explain "protection types" for the instance lockinclude/linux/netdevice.h include/net/netdev_lock.h+21 -60 replies
5/11net: designate queue counts as "double ops protected" by instance lockinclude/linux/netdevice.h net/core/dev.c net/core/net-sysfs.c +2 more+17 -00 repliesApplied
6/11net: designate queue -> napi linking as "ops protected"include/linux/netdevice.h include/net/netdev_lock.h include/net/netdev_rx_queue.h +1 more+13 -50 repliesApplied
7/11net: protect rxq->mp_params with the instance locknet/core/dev.c net/core/page_pool.c+4 -72 repliesApplied
8/11net: make NETDEV_UNREGISTER and instance lock more consistentnet/core/dev.c+8 -12 replies
9/11net: designate XSK pool pointers in queues as "ops protected"include/linux/netdevice.h include/net/netdev_rx_queue.h net/xdp/xsk_buff_pool.c+10 -40 replies
10/11netdev: add "ops compat locking" helpersinclude/net/netdev_lock.h net/core/dev.c net/core/dev.h+80 -00 replies
11/11netdev: don't hold rtnl_lock over nl queue info get when possiblenet/core/netdev-genl.c+7 -110 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.

PatchStanislav FomichevMina Almasry
SeriesA-b
1/11R-b
2/11
3/11
4/11
5/11
6/11
7/11R-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.

Read the v2 thread

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