From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [RFT 3/4] Use mod_timer_noact to remove nf_conntrack_lock Date: Wed, 18 Feb 2009 15:04:11 +0100 Message-ID: <499C155B.9010200@trash.net> References: <20090218051906.174295181@vyatta.com> <20090218052747.555811553@vyatta.com> <499C14AF.60704@cosmosbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: Stephen Hemminger , David Miller , Rick Jones , netdev@vger.kernel.org, tglx@linutronix.de, netfilter-devel@vger.kernel.org, Martin Josefsson To: Eric Dumazet Return-path: In-Reply-To: <499C14AF.60704@cosmosbay.com> Sender: netdev-owner@vger.kernel.org List-Id: netfilter-devel.vger.kernel.org Eric Dumazet wrote: > Unfortunatly, this patch changes nothing, as most of the time, do_acct is true. > > We also need to fine lock the accounting part as well. > > spin_lock_bh(&ct->some_lock); > acct = nf_conn_acct_find(ct); > if (acct) { > acct[CTINFO2DIR(ctinfo)].packets++; > acct[CTINFO2DIR(ctinfo)].bytes += > skb->len - skb_network_offset(skb); > } > spin_unlock_bh(&ct->some_lock); > Its currently still enabled by default, but we intend to change that. After that I guess almost nobody will have it enabled.