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)
commit6f542efcbc74801eb4bfa0dbba64c2df6811b2d3
treede599fdf0df82a87994f7c4c91e11acf3885614d
parente86800f9201d35b6b2aac1583a9bf9e3a0b0c70d
net_sched: htb: do not acquire qdisc lock in dump operations

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