]> 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>
Fri, 27 Dec 2024 13:01:57 +0000 (14:01 +0100)
commite3e54ad9eff8bdaa70f897e5342e34b76109497f
tree3ecdb30ae666eaa24463b9d43df7fa0a03d7eb4b
parente9d65b48ce1aba50e9ec7eab6d9f73d1ba88420e
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