net: sched: fix ordering of qlen adjustment

commit 5eb7de8cd5 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>
This commit is contained in:
Lion Ackermann 2024-12-02 17:22:57 +01:00 • committed by Greg Kroah-Hartman
commit 33db36b3c5
2 changed files with 2 additions and 2 deletions