net_sched: htb: do not acquire qdisc lock in dump operations
authorEric Dumazet <edumazet@google.com>
Wed, 5 Mar 2014 18:14:34 +0000 (10:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Mar 2014 22:24:54 +0000 (17:24 -0500)
htb_dump() and htb_dump_class() do not strictly need to acquire
qdisc lock to fetch qdisc and/or class parameters.

We hold RTNL and no changes can occur.

This reduces by 50% qdisc lock pressure while doing tc qdisc|class dump
operations.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_htb.c

Simple merge