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>
Showing
- include/net/sch_generic.h 12 additions, 0 deletionsinclude/net/sch_generic.h
- net/sched/sch_api.c 4 additions, 4 deletionsnet/sched/sch_api.c
- net/sched/sch_cbq.c 5 additions, 4 deletionsnet/sched/sch_cbq.c
- net/sched/sch_generic.c 16 additions, 5 deletionsnet/sched/sch_generic.c
- net/sched/sch_hfsc.c 2 additions, 2 deletionsnet/sched/sch_hfsc.c
- net/sched/sch_htb.c 10 additions, 8 deletionsnet/sched/sch_htb.c
- net/sched/sch_netem.c 6 additions, 3 deletionsnet/sched/sch_netem.c
Loading
Please register or sign in to comment