pkt_sched: Kill netdev_queue lock.

We can simply use the qdisc->q.lock for all of the
qdisc tree synchronization.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller
2008-07-17 00:53:03 -07:00
parent c7e4f3bbb4
commit 8387400092
7 changed files with 43 additions and 52 deletions

View File

@@ -2080,10 +2080,12 @@ static int ing_filter(struct sk_buff *skb)
rxq = &dev->rx_queue;
spin_lock(&rxq->lock);
if ((q = rxq->qdisc) != NULL)
q = rxq->qdisc;
if (q) {
spin_lock(qdisc_lock(q));
result = q->enqueue(skb, q);
spin_unlock(&rxq->lock);
spin_unlock(qdisc_lock(q));
}
return result;
}
@@ -4173,7 +4175,6 @@ static void netdev_init_one_queue(struct net_device *dev,
struct netdev_queue *queue,
void *_unused)
{
spin_lock_init(&queue->lock);
queue->dev = dev;
}