From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Lameter Subject: Re: Poll about irqsafe_cpu_add and others Date: Thu, 17 Mar 2011 12:46:18 -0500 (CDT) Message-ID: References: <1300371834.6315.93.camel@edumazet-laptop> <20110317.081420.71114992.davem@davemloft.net> <1300380801.6315.306.camel@edumazet-laptop> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: Received: from smtp108.prem.mail.ac4.yahoo.com ([76.13.13.47]:47275 "HELO smtp108.prem.mail.ac4.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754774Ab1CQRqX (ORCPT ); Thu, 17 Mar 2011 13:46:23 -0400 In-Reply-To: <1300380801.6315.306.camel@edumazet-laptop> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Eric Dumazet Cc: David Miller , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org On Thu, 17 Mar 2011, Eric Dumazet wrote: > When we know we run from BH context, we can use __this_cpu_inc(), but if > we dont know or run from user/process context, we would need irqsafe_inc > variant. If the BH context is the only one where we care about performance then its ok I would think.