xfrm: add rcu grace period in xfrm_policy_destroy()
authorEric Dumazet <edumazet@google.com>
Tue, 8 Dec 2015 15:22:01 +0000 (07:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Dec 2015 00:22:06 +0000 (19:22 -0500)
commit56f047305dd4b6b61771ac4f523718e4111052a8
tree05de0e01553b3040c009048ee446b849a3f697e1
parentb0a8d1a0b6e569b7dd14322ca2df4d576f325908
xfrm: add rcu grace period in xfrm_policy_destroy()

We will soon switch sk->sk_policy[] to RCU protection,
as SYNACK packets are sent while listener socket is not locked.

This patch simply adds RCU grace period before struct xfrm_policy
freeing, and the corresponding rcu_head in struct xfrm_policy.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/xfrm/xfrm_policy.c