Stephen Hemminger wrote:
That was some old messing around, that got in there...
Here is the correct patch.
The hunks are still there.
quoted hunk ↗ jump to hunk
@@ -1554,7 +1554,6 @@ hfsc_init_qdisc(struct Qdisc *sch, struc
qopt = RTA_DATA(opt);
memset(q, 0, sizeof(struct hfsc_sched));
- sch->stats_lock = &sch->dev->queue_lock;
q->defcls = qopt->defcls;
for (i = 0; i < HFSC_HSIZE; i++)
@@ -1674,7 +1673,7 @@ hfsc_dump_qdisc(struct Qdisc *sch, struc
RTA_PUT(skb, TCA_OPTIONS, sizeof(qopt), &qopt);
sch->stats.qlen = sch->q.qlen;
- if (qdisc_copy_stats(skb, &sch->stats, sch->stats_lock) < 0)
+ if (qdisc_copy_stats(skb, &sch->stats, &sch->dev->queue_lock) < 0)
goto rtattr_failure;
return skb->len;