]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Replace spinlock with seqlock and rcu in ip6_tunnel
authorMartin KaFai Lau <kafai@fb.com>
Tue, 15 Sep 2015 21:30:09 +0000 (14:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2015 21:53:05 +0000 (14:53 -0700)
commit05ecb89eba0e3edecdfd5258f8705550b827b0f0
tree11b8e0054461b9788d669215416655f112545670
parenta7fd22d46ac1ce4f4541fe22a4fc3e5358128c18
ipv6: Replace spinlock with seqlock and rcu in ip6_tunnel

This patch uses a seqlock to ensure consistency between idst->dst and
idst->cookie.  It also makes dst freeing from fib tree to undergo a
rcu grace period.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_tunnel.h
net/ipv6/ip6_fib.c
net/ipv6/ip6_tunnel.c