aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/sch_generic.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-07-16 05:23:17 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-17 22:21:21 -0400
commit16361127ebed0fb8f9d7cc94c6e137eaf710f676 (patch)
tree09488bb81ecaeed1bbccef13eacdbe8d8a71b07d /net/sched/sch_generic.c
parent37437bb2e1ae8af470dfcd5b4ff454110894ccaf (diff)
pkt_sched: dev_init_scheduler() does not need to lock qdisc tree.
We are registering the device, there is no way anyone can get at this object's qdiscs yet in any meaningful way. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_generic.c')
-rw-r--r--net/sched/sch_generic.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index dd5c4e70abe4..7e078c593194 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -741,10 +741,8 @@ static void dev_init_scheduler_queue(struct net_device *dev,
741 741
742void dev_init_scheduler(struct net_device *dev) 742void dev_init_scheduler(struct net_device *dev)
743{ 743{
744 qdisc_lock_tree(dev);
745 netdev_for_each_tx_queue(dev, dev_init_scheduler_queue, &noop_qdisc); 744 netdev_for_each_tx_queue(dev, dev_init_scheduler_queue, &noop_qdisc);
746 dev_init_scheduler_queue(dev, &dev->rx_queue, NULL); 745 dev_init_scheduler_queue(dev, &dev->rx_queue, NULL);
747 qdisc_unlock_tree(dev);
748 746
749 setup_timer(&dev->watchdog_timer, dev_watchdog, (unsigned long)dev); 747 setup_timer(&dev->watchdog_timer, dev_watchdog, (unsigned long)dev);
750} 748}