From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] ipv6: get rid of ipip6_prl_lock Date: Tue, 01 Jun 2010 00:27:21 -0700 (PDT) Message-ID: <20100601.002721.184817854.davem@davemloft.net> References: <1275252912.2472.23.camel@edumazet-laptop> <1275282295.2472.34.camel@edumazet-laptop> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: julia@diku.dk, kuznet@ms2.inr.ac.ru, pekkas@netcore.fi, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org To: eric.dumazet@gmail.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:44602 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752028Ab0FAH1M (ORCPT ); Tue, 1 Jun 2010 03:27:12 -0400 In-Reply-To: <1275282295.2472.34.camel@edumazet-laptop> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Mon, 31 May 2010 07:04:55 +0200 > [PATCH] ipv6: get rid of ipip6_prl_lock > > As noticed by Julia Lawall, ipip6_tunnel_add_prl() incorrectly calls > kzallloc(..., GFP_KERNEL) while a spinlock is held. She provided > a patch to use GFP_ATOMIC instead. > > One possibility would be to convert this spinlock to a mutex, or > preallocate the thing before taking the lock. > > After RCU conversion, it appears we dont need this lock, since > caller already holds RTNL > > Signed-off-by: Eric Dumazet Applied, thanks everyone.