]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
pkt_sched: Add and use qdisc_root() and qdisc_root_lock().
authorDavid S. Miller <davem@davemloft.net>
Wed, 16 Jul 2008 08:42:40 +0000 (01:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jul 2008 02:21:19 +0000 (19:21 -0700)
commit7698b4fcabcd790efc4f226bada1e7b5870653af
tree031ce7a911fc5bff995421a5615d9ab25416a479
parente2627c8c2241bce45e368e150654d076b58a4595
pkt_sched: Add and use qdisc_root() and qdisc_root_lock().

When code wants to lock the qdisc tree state, the logic
operation it's doing is locking the top-level qdisc that
sits of the root of the netdev_queue.

Add qdisc_root_lock() to represent this and convert the
easiest cases.

In order for this to work out in all cases, we have to
hook up the noop_qdisc to a dummy netdev_queue.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h
net/sched/sch_api.c
net/sched/sch_cbq.c
net/sched/sch_generic.c
net/sched/sch_hfsc.c
net/sched/sch_htb.c
net/sched/sch_netem.c