pkt_sched: Rework {sch,tbf}_tree_lock().
authorDavid S. Miller <davem@davemloft.net>
Wed, 16 Jul 2008 10:12:24 +0000 (03:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jul 2008 02:21:28 +0000 (19:21 -0700)
commit78a5b30b7324b2d66bcf7d2e3935877d3c26497c
treea281f8611679c93c39cf6e9ff1e5b4121cbb8011
parent53049978df1d9ae55bf397c9879e6b33218352db
pkt_sched: Rework {sch,tbf}_tree_lock().

Make sch_tree_lock() lock the qdisc's root.  All of the
users hold the RTNL semaphore and the root qdisc is not
changing.

Implement tbf_tree_{lock,unlock}() simply in terms of
sch_tree_{lock,unlock}().

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h