Skip to content
Commit 7698b4fc authored by David S. Miller's avatar David S. Miller
Browse files

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: default avatarDavid S. Miller <davem@davemloft.net>
parent e2627c8c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment