Skip to content

Commit b5327b9

Browse files
edumazetdavem330
authored andcommitted
ipv6: use call_rcu_hurry() in fib6_info_release()
This is a followup of commit c4e86b4 ("net: add two more call_rcu_hurry()") fib6_info_destroy_rcu() is calling nexthop_put() or fib6_nh_release() We must not delay it too much or risk unregister_netdevice/ref_tracker traces because references to netdev are not released in time. This should speedup device/netns dismantles when CONFIG_RCU_LAZY=y Signed-off-by: Eric Dumazet <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Reviewed-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 61f5338 commit b5327b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/net/ip6_fib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ static inline void fib6_info_release(struct fib6_info *f6i)
338338
{
339339
if (f6i && refcount_dec_and_test(&f6i->fib6_ref)) {
340340
DEBUG_NET_WARN_ON_ONCE(!hlist_unhashed(&f6i->gc_link));
341-
call_rcu(&f6i->rcu, fib6_info_destroy_rcu);
341+
call_rcu_hurry(&f6i->rcu, fib6_info_destroy_rcu);
342342
}
343343
}
344344

0 commit comments

Comments
 (0)