]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: sched: fix ordering of qlen adjustment
authorLion Ackermann <nnamrec@gmail.com>
Mon, 2 Dec 2024 16:22:57 +0000 (17:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2025 12:24:50 +0000 (13:24 +0100)
commit5e473f462a16f1a34e49ea4289a667d2e4f35b52
tree334a1acaf18a08017748ea579490035115335637
parentabc9475430fdca840a171ebd7b92c72a2c1ad899
net: sched: fix ordering of qlen adjustment

commit 5eb7de8cd58e73851cd37ff8d0666517d9926948 upstream.

Changes to sch->q.qlen around qdisc_tree_reduce_backlog() need to happen
_before_ a call to said function because otherwise it may fail to notify
parent qdiscs when the child is about to become empty.

Signed-off-by: Lion Ackermann <nnamrec@gmail.com>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Artem Metla <ametla@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sched/sch_cake.c
net/sched/sch_choke.c