Skip to content
Commit 4d85cd0c authored by David Ahern's avatar David Ahern Committed by David S. Miller
Browse files

net/ipv6: Move rcu_read_lock to callers of ip6_rt_cache_alloc



A later patch protects 'from' in rt6_info and this simplifies the
locking needed by it.

With the move, the fib6_info_hold for the uncached_rt is no longer
needed since the rcu_lock is still held.

Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a269f1a7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment