diff options
author | Cong Wang <xiyou.wangcong@gmail.com> | 2025-04-04 00:10:27 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-04-08 11:57:49 +0300 |
commit | a7a15f39c682ac4268624da2abdb9114bdde96d5 (patch) | |
tree | 256e0884fdcd444b344a0448712e84866718a2cd /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 55f9eca4bfe30a15d8656f915922e8c98b7f0728 (diff) | |
download | linux-a7a15f39c682ac4268624da2abdb9114bdde96d5.tar.xz |
sch_ets: make est_qlen_notify() idempotent
est_qlen_notify() deletes its class from its active list with
list_del() when qlen is 0, therefore, it is not idempotent and
not friendly to its callers, like fq_codel_dequeue().
Let's make it idempotent to ease qdisc_tree_reduce_backlog() callers'
life. Also change other list_del()'s to list_del_init() just to be
extra safe.
Reported-by: Gerrard Tai <gerrard.tai@starlabs.sg>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Link: https://patch.msgid.link/20250403211033.166059-6-xiyou.wangcong@gmail.com
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions