]> 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:28:29 +0000 (13:28 +0100)
commit33db36b3c53d0fda2699ea39ba72bee4de8336e8
tree6d5a2a822e740e65f8c234aab58fd782ef96a35d
parent91786f140358b1e56efdb0feccb337ce3a59c031
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