Netdev List
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/8] net/sched: prepare lockless qdisc dumps
@ 2026-05-10  9:14 Eric Dumazet
  2026-05-10  9:14 ` [PATCH v2 net-next 1/8] net/sched: add READ_ONCE() in gnet_stats_add_queue[_cpu] Eric Dumazet
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Eric Dumazet @ 2026-05-10  9:14 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, Jamal Hadi Salim, Jiri Pirko, Victor Nogueira,
	netdev, eric.dumazet, Eric Dumazet

Goal is to no longer acquire RTNL in qdisc dumps.

This series annotate data-races, and change mq and mq_prio to
no longer acquire children qdisc spinlocks.

v2: addressed sashiko (and Victor Nogueira) feedback.

Eric Dumazet (8):
  net/sched: add READ_ONCE() in gnet_stats_add_queue[_cpu]
  net/sched: add qdisc_qlen_inc() and qdisc_qlen_dec()
  net/sched: annotate data-races around sch->qstats.backlog
  net/sched: add qdisc_qlen_lockless() helper
  net/sched: add const qualifiers to gnet_stats helpers
  net/sched: mq: no longer acquire qdisc spinlocks in dump operations
  net/sched: mq_prio: no longer acquire qdisc spinlocks in mqprio_dump()
  net/sched: mq_prio: no longer acquire qdisc spinlocks in
    mqprio_dump_class_stats()

 include/net/gen_stats.h   | 16 +++----
 include/net/sch_generic.h | 64 ++++++++++++++++++++-------
 net/core/gen_stats.c      | 51 +++++++++++----------
 net/sched/sch_api.c       |  4 +-
 net/sched/sch_cake.c      | 18 ++++----
 net/sched/sch_cbs.c       |  6 +--
 net/sched/sch_choke.c     |  8 ++--
 net/sched/sch_codel.c     |  2 +-
 net/sched/sch_drr.c       |  6 +--
 net/sched/sch_dualpi2.c   |  6 +--
 net/sched/sch_etf.c       |  8 ++--
 net/sched/sch_ets.c       |  6 +--
 net/sched/sch_fq.c        |  8 ++--
 net/sched/sch_fq_codel.c  | 11 ++---
 net/sched/sch_fq_pie.c    |  8 ++--
 net/sched/sch_generic.c   | 12 ++---
 net/sched/sch_gred.c      |  2 +-
 net/sched/sch_hfsc.c      |  6 +--
 net/sched/sch_hhf.c       |  7 +--
 net/sched/sch_htb.c       |  6 +--
 net/sched/sch_mq.c        | 37 +++++++++++-----
 net/sched/sch_mqprio.c    | 93 ++++++++++++++++++++-------------------
 net/sched/sch_multiq.c    |  4 +-
 net/sched/sch_netem.c     | 12 ++---
 net/sched/sch_prio.c      |  6 +--
 net/sched/sch_qfq.c       |  8 ++--
 net/sched/sch_red.c       |  6 +--
 net/sched/sch_sfb.c       |  8 ++--
 net/sched/sch_sfq.c       | 11 ++---
 net/sched/sch_skbprio.c   |  4 +-
 net/sched/sch_taprio.c    |  4 +-
 net/sched/sch_tbf.c       | 10 ++---
 net/sched/sch_teql.c      |  2 +-
 33 files changed, 256 insertions(+), 204 deletions(-)

-- 
2.54.0.563.g4f69b47b94-goog


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-05-12  1:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-10  9:14 [PATCH v2 net-next 0/8] net/sched: prepare lockless qdisc dumps Eric Dumazet
2026-05-10  9:14 ` [PATCH v2 net-next 1/8] net/sched: add READ_ONCE() in gnet_stats_add_queue[_cpu] Eric Dumazet
2026-05-10  9:14 ` [PATCH v2 net-next 2/8] net/sched: add qdisc_qlen_inc() and qdisc_qlen_dec() Eric Dumazet
2026-05-10  9:14 ` [PATCH v2 net-next 3/8] net/sched: annotate data-races around sch->qstats.backlog Eric Dumazet
2026-05-10  9:14 ` [PATCH v2 net-next 4/8] net/sched: add qdisc_qlen_lockless() helper Eric Dumazet
2026-05-10  9:14 ` [PATCH v2 net-next 5/8] net/sched: add const qualifiers to gnet_stats helpers Eric Dumazet
2026-05-10  9:14 ` [PATCH v2 net-next 6/8] net/sched: mq: no longer acquire qdisc spinlocks in dump operations Eric Dumazet
2026-05-10  9:14 ` [PATCH v2 net-next 7/8] net/sched: mq_prio: no longer acquire qdisc spinlocks in mqprio_dump() Eric Dumazet
2026-05-10  9:14 ` [PATCH v2 net-next 8/8] net/sched: mq_prio: no longer acquire qdisc spinlocks in mqprio_dump_class_stats() Eric Dumazet
2026-05-10  9:31 ` [PATCH v2 net-next 0/8] net/sched: prepare lockless qdisc dumps Toke Høiland-Jørgensen
2026-05-12  1:48 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox