Skip to content

Commit f98ec78

Browse files
Litao Jiaodavem330
authored andcommitted
vxlan: do not need BH again in vxlan_cleanup()
vxlan_cleanup() is a timer callback, it is already and only running in BH context. Signed-off-by: Litao Jiao <jiaolitao@raisecom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d394d33 commit f98ec78

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/net/vxlan.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2690,7 +2690,7 @@ static void vxlan_cleanup(struct timer_list *t)
26902690
for (h = 0; h < FDB_HASH_SIZE; ++h) {
26912691
struct hlist_node *p, *n;
26922692

2693-
spin_lock_bh(&vxlan->hash_lock);
2693+
spin_lock(&vxlan->hash_lock);
26942694
hlist_for_each_safe(p, n, &vxlan->fdb_head[h]) {
26952695
struct vxlan_fdb *f
26962696
= container_of(p, struct vxlan_fdb, hlist);
@@ -2712,7 +2712,7 @@ static void vxlan_cleanup(struct timer_list *t)
27122712
} else if (time_before(timeout, next_timer))
27132713
next_timer = timeout;
27142714
}
2715-
spin_unlock_bh(&vxlan->hash_lock);
2715+
spin_unlock(&vxlan->hash_lock);
27162716
}
27172717

27182718
mod_timer(&vxlan->age_timer, next_timer);

0 commit comments

Comments
 (0)