]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: fix dump qlen for sch_mq/sch_mqprio with NOLOCK subqueues
authorDust Li <dust.li@linux.alibaba.com>
Tue, 3 Dec 2019 03:17:40 +0000 (11:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Dec 2019 19:53:55 +0000 (11:53 -0800)
commit545534596ae9094ee4aa82f5db0796fb4a34949a
treece2e53a524b4584053dca5b04fd261f29cc54d65
parentece1d6620802c728632b7c1112dcfe72511f1795
net: sched: fix dump qlen for sch_mq/sch_mqprio with NOLOCK subqueues

sch->q.len hasn't been set if the subqueue is a NOLOCK qdisc
 in mq_dump() and mqprio_dump().

Fixes: d094bccebae0 ("net: sched: add support for TCQ_F_NOLOCK subqueues to sch_mqprio")
Signed-off-by: Dust Li <dust.li@linux.alibaba.com>
Signed-off-by: Tony Lu <tonylu@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_mq.c
net/sched/sch_mqprio.c