diff options
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/sch_generic.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index 9be2f152455a..ea5a05b172c4 100644 --- a/net/sched/sch_generic.c +++ b/net/sched/sch_generic.c | |||
@@ -40,12 +40,16 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | void qdisc_lock_tree(struct net_device *dev) | 42 | void qdisc_lock_tree(struct net_device *dev) |
43 | __acquires(dev->queue_lock) | ||
44 | __acquires(dev->ingress_lock) | ||
43 | { | 45 | { |
44 | spin_lock_bh(&dev->queue_lock); | 46 | spin_lock_bh(&dev->queue_lock); |
45 | spin_lock(&dev->ingress_lock); | 47 | spin_lock(&dev->ingress_lock); |
46 | } | 48 | } |
47 | 49 | ||
48 | void qdisc_unlock_tree(struct net_device *dev) | 50 | void qdisc_unlock_tree(struct net_device *dev) |
51 | __releases(dev->ingress_lock) | ||
52 | __releases(dev->queue_lock) | ||
49 | { | 53 | { |
50 | spin_unlock(&dev->ingress_lock); | 54 | spin_unlock(&dev->ingress_lock); |
51 | spin_unlock_bh(&dev->queue_lock); | 55 | spin_unlock_bh(&dev->queue_lock); |