diff options
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 6b7108e53fd9..8e79a9e04276 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -1000,7 +1000,7 @@ static void __do_rt_garbage_collect(int elasticity, int min_interval) * do not make it too frequently. */ - spin_lock(&rt_gc_lock); + spin_lock_bh(&rt_gc_lock); RT_CACHE_STAT_INC(gc_total); @@ -1103,7 +1103,7 @@ work_done: dst_entries_get_slow(&ipv4_dst_ops) < ipv4_dst_ops.gc_thresh) expire = ip_rt_gc_timeout; out: - spin_unlock(&rt_gc_lock); + spin_unlock_bh(&rt_gc_lock); } static void __rt_garbage_collect(struct work_struct *w) |