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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Dec 2019 09:57:12 +0000 (10:57 +0100)
commit0c5a4dd6ae93216a5f1e0ef4d13cb3852354b3bd
tree996546eb7087e2e6656f07fdcd5009ce9a53edde
parent64334e4f982585c1eb53d3cc067c5641aac0122b
net: sched: fix dump qlen for sch_mq/sch_mqprio with NOLOCK subqueues

[ Upstream commit 2f23cd42e19c22c24ff0e221089b7b6123b117c5 ]

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

Fixes: ce679e8df7ed ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sched/sch_mq.c
net/sched/sch_mqprio.c