netdev: Move queue_lock into struct netdev_queue.
The lock is now an attribute of the device queue. One thing to notice is that "suspicious" places emerge which will need specific training about multiple queue handling. They are so marked with explicit "netdev->rx_queue" and "netdev->tx_queue" references. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -154,9 +154,9 @@ teql_destroy(struct Qdisc* sch)
|
||||
master->slaves = NEXT_SLAVE(q);
|
||||
if (q == master->slaves) {
|
||||
master->slaves = NULL;
|
||||
spin_lock_bh(&master->dev->queue_lock);
|
||||
spin_lock_bh(&master->dev->tx_queue.lock);
|
||||
qdisc_reset(master->dev->qdisc);
|
||||
spin_unlock_bh(&master->dev->queue_lock);
|
||||
spin_unlock_bh(&master->dev->tx_queue.lock);
|
||||
}
|
||||
}
|
||||
skb_queue_purge(&dat->q);
|
||||
|
Reference in New Issue
Block a user