From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steffen Klassert Subject: Re: [PATCH net 1/2] xfrm: add rcu grace period in xfrm_policy_destroy() Date: Thu, 10 Dec 2015 13:34:22 +0100 Message-ID: <20151210123422.GA29565@gauss.secunet.com> References: <1449588122-13941-1-git-send-email-edumazet@google.com> <20151208.225829.122422778076120961.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: , To: David Miller Return-path: Received: from a.mx.secunet.com ([195.81.216.161]:40889 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753210AbbLJMe3 (ORCPT ); Thu, 10 Dec 2015 07:34:29 -0500 Content-Disposition: inline In-Reply-To: <20151208.225829.122422778076120961.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Dec 08, 2015 at 10:58:29PM -0500, David Miller wrote: > From: Eric Dumazet > Date: Tue, 8 Dec 2015 07:22:01 -0800 > > > 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 > > I'll give Steffen an opportunity to review these two patches. Looks ok and survived some tests with socket policies. If you want to take these direct into the net tree: Acked-by: Steffen Klassert