]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/sched: sch_fq_codel: remove data-races from fq_codel_dump_stats()
authorEric Dumazet <edumazet@google.com>
Tue, 21 Apr 2026 14:25:09 +0000 (14:25 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Apr 2026 04:12:50 +0000 (21:12 -0700)
commitbbfaa73ea6871db03dc05d7f05f00557a8981f25
treedf95c447d879a3c10145ede9214d80b978f6b33d
parent5154561d9b119f781249f8e845fecf059b38b483
net/sched: sch_fq_codel: remove data-races from fq_codel_dump_stats()

fq_codel_dump_stats() acquires the qdisc spinlock a bit too late.

Move this acquisition before we fill st.qdisc_stats with live data.

Fixes: edb09eb17ed8 ("net: sched: do not acquire qdisc spinlock in qdisc/class stats dump")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Link: https://patch.msgid.link/20260421142509.3967231-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/sch_fq_codel.c