OSDN Git Service

net/ipv6: Move rcu_read_lock to callers of ip6_rt_cache_alloc
authorDavid Ahern <dsahern@gmail.com>
Fri, 20 Apr 2018 22:37:59 +0000 (15:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2018 20:06:13 +0000 (16:06 -0400)
commit4d85cd0c2a1ce22a9aca1fa668ba11043c834bbc
tree766f39e4a23d638e52e0485569ee98c35caeaeeb
parenta269f1a764bb3abf5c73499fb74bc7ab1c2e986c
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: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c