]> err.no Git - linux-2.6/blobdiff - net/sched/sch_generic.c
[NET]: Add some acquires/releases sparse annotations.
[linux-2.6] / net / sched / sch_generic.c
index 9be2f152455a952e0f01fa7d1b31e0d386d0261b..ea5a05b172c4d137ef39250f8aa6c27e07830056 100644 (file)
  */
 
 void qdisc_lock_tree(struct net_device *dev)
+       __acquires(dev->queue_lock)
+       __acquires(dev->ingress_lock)
 {
        spin_lock_bh(&dev->queue_lock);
        spin_lock(&dev->ingress_lock);
 }
 
 void qdisc_unlock_tree(struct net_device *dev)
+       __releases(dev->ingress_lock)
+       __releases(dev->queue_lock)
 {
        spin_unlock(&dev->ingress_lock);
        spin_unlock_bh(&dev->queue_lock);