Subject: Re: [PATCH net 1/2] vxlan: avoid using stale vxlan socket.

From: Stephen Hemminger <[email-masked]>
Date: Thu, 27 Oct 2016 16:02:19 -0700

On Thu, 27 Oct 2016 11:51:55 -0700
Pravin B Shelar <[email-masked]> wrote:

> -	vxlan->vn4_sock = NULL;
> +	rcu_assign_pointer(vxlan->vn4_sock, NULL);
>  #if IS_ENABLED(CONFIG_IPV6)
> -	vxlan->vn6_sock = NULL;
> +	rcu_assign_pointer(vxlan->vn6_sock, NULL);
>  	if (ipv6 || metadata)

User RCU_INIT_POINTER when setting pointer to NULL.
It avoids unnecessary barrier.