aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2012-01-15 23:35:50 -0500
committerDavid S. Miller <davem@davemloft.net>2012-01-17 10:17:32 -0500
commit27a429383b399fc0f68bea55c422d7179f3c8b05 (patch)
treea38d2d38a7506e10cf4bd00a2b49273d82878fbf /net/bridge
parent319d3b9c97b5e3191e419bb95496bf08ec50f096 (diff)
bridge: BH already disabled in br_fdb_cleanup()
br_fdb_cleanup() is run from timer interrupt, BH already masked. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> CC: Stephen Hemminger <shemminger@vyatta.com> CC: Štefan Gula <steweg@gmail.com> Acked-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r--net/bridge/br_fdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c
index f963f6b1884f..5ba0c844d508 100644
--- a/net/bridge/br_fdb.c
+++ b/net/bridge/br_fdb.c
@@ -146,7 +146,7 @@ void br_fdb_cleanup(unsigned long _data)
146 unsigned long next_timer = jiffies + br->ageing_time; 146 unsigned long next_timer = jiffies + br->ageing_time;
147 int i; 147 int i;
148 148
149 spin_lock_bh(&br->hash_lock); 149 spin_lock(&br->hash_lock);
150 for (i = 0; i < BR_HASH_SIZE; i++) { 150 for (i = 0; i < BR_HASH_SIZE; i++) {
151 struct net_bridge_fdb_entry *f; 151 struct net_bridge_fdb_entry *f;
152 struct hlist_node *h, *n; 152 struct hlist_node *h, *n;
@@ -162,7 +162,7 @@ void br_fdb_cleanup(unsigned long _data)
162 next_timer = this_timer; 162 next_timer = this_timer;
163 } 163 }
164 } 164 }
165 spin_unlock_bh(&br->hash_lock); 165 spin_unlock(&br->hash_lock);
166 166
167 mod_timer(&br->gc_timer, round_jiffies_up(next_timer)); 167 mod_timer(&br->gc_timer, round_jiffies_up(next_timer));
168} 168}