Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a76d7345 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller
Browse files

ipv6: use spin_trylock_bh



Now there is spin_trylock_bh, use it rather than open coding.

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c8a45222
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1447,10 +1447,8 @@ void fib6_run_gc(unsigned long expires, struct net *net)
		gc_args.timeout = expires ? (int)expires :
			net->ipv6.sysctl.ip6_rt_gc_interval;
	} else {
		local_bh_disable();
		if (!spin_trylock(&fib6_gc_lock)) {
		if (!spin_trylock_bh(&fib6_gc_lock)) {
			mod_timer(&net->ipv6.ip6_fib_timer, jiffies + HZ);
			local_bh_enable();
			return;
		}
		gc_args.timeout = net->ipv6.sysctl.ip6_rt_gc_interval;