From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [NETFILTER 01/05]: nf_conntrack: fix smp_processor_id() in preemptible code warning Date: Wed, 27 Feb 2008 12:09:15 -0800 (PST) Message-ID: <20080227.120915.54901797.davem@davemloft.net> References: <20080227131427.26831.51195.sendpatchset@localhost.localdomain> <20080227131428.26831.70102.sendpatchset@localhost.localdomain> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netfilter-devel@vger.kernel.org To: kaber@trash.net Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:54415 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1754929AbYB0UJQ (ORCPT ); Wed, 27 Feb 2008 15:09:16 -0500 In-Reply-To: <20080227131428.26831.70102.sendpatchset@localhost.localdomain> Sender: netfilter-devel-owner@vger.kernel.org List-ID: From: Patrick McHardy Date: Wed, 27 Feb 2008 14:14:20 +0100 (MET) > [NETFILTER]: nf_conntrack: fix smp_processor_id() in preemptible code warning > > Since we're using RCU for the conntrack hash now, we need to avoid > getting preempted or interrupted by BHs while changing the stats. > > Fixes warning reported by Tilman Schmidt when using > preemptible RCU: > > [ 48.180297] BUG: using smp_processor_id() in preemptible [00000000] code: ntpdate/3562 > [ 48.180297] caller is __nf_conntrack_find+0x9b/0xeb [nf_conntrack] > [ 48.180297] Pid: 3562, comm: ntpdate Not tainted 2.6.25-rc2-mm1-testing #1 > [ 48.180297] [] debug_smp_processor_id+0x99/0xb0 > [ 48.180297] [] __nf_conntrack_find+0x9b/0xeb [nf_conntrack] > > Tested-by: Tilman Schmidt > Tested-by: Christian Casteyde [Bugzilla #10097] > > Signed-off-by: Patrick McHardy Applied.