|
@@ -1169,8 +1169,8 @@ static int tc_fill_qdisc(struct sk_buff *skb, struct Qdisc *q, u32 clid,
|
|
|
if (q->stab && qdisc_dump_stab(skb, q->stab) < 0)
|
|
|
goto nla_put_failure;
|
|
|
|
|
|
- if (gnet_stats_start_copy_compat(skb, TCA_STATS2, TCA_STATS,
|
|
|
- TCA_XSTATS, qdisc_root_lock(q), &d) < 0)
|
|
|
+ if (gnet_stats_start_copy_compat(skb, TCA_STATS2, TCA_STATS, TCA_XSTATS,
|
|
|
+ qdisc_root_sleeping_lock(q), &d) < 0)
|
|
|
goto nla_put_failure;
|
|
|
|
|
|
if (q->ops->dump_stats && q->ops->dump_stats(q, &d) < 0)
|
|
@@ -1461,8 +1461,8 @@ static int tc_fill_tclass(struct sk_buff *skb, struct Qdisc *q,
|
|
|
if (cl_ops->dump && cl_ops->dump(q, cl, skb, tcm) < 0)
|
|
|
goto nla_put_failure;
|
|
|
|
|
|
- if (gnet_stats_start_copy_compat(skb, TCA_STATS2, TCA_STATS,
|
|
|
- TCA_XSTATS, qdisc_root_lock(q), &d) < 0)
|
|
|
+ if (gnet_stats_start_copy_compat(skb, TCA_STATS2, TCA_STATS, TCA_XSTATS,
|
|
|
+ qdisc_root_sleeping_lock(q), &d) < 0)
|
|
|
goto nla_put_failure;
|
|
|
|
|
|
if (cl_ops->dump_stats && cl_ops->dump_stats(q, cl, &d) < 0)
|