Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754782Ab1DRO0E (ORCPT ); Mon, 18 Apr 2011 10:26:04 -0400 Received: from smtp102.prem.mail.ac4.yahoo.com ([76.13.13.41]:31688 "HELO smtp102.prem.mail.ac4.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754592Ab1DROZ5 (ORCPT ); Mon, 18 Apr 2011 10:25:57 -0400 X-Yahoo-SMTP: _Dag8S.swBC1p4FJKLCXbs8NQzyse1SYSgnAbY0- X-YMail-OSG: mK6DtusVM1kLigbPC3KzXs.SDeKs5hu0jY3fF0gQchBGmkY X.dncroIntVgjStoqWwtqV8G.sVC9hxL02GLBSAbMd1zs2v0VXVfHCCRVrx2 NotGPGWJmub_2QrFUKfpV6fiD5WyAxZUX_imzK8.HhfK0k3hpcNjcB0pwspw xEzgx3G7ryUM6UPMrXaKtBHYy2YARI7lw6mxW9iXb1x7BebRZGowv1o_rpsV j1NkiiFRB_ZQDTJf4M95XOHVaOJPzliZwdHuD.VJR8Z72McTeh4ab1my5xXy SPMsGu_1iGi9eurfirLzl5fLCW.wAZYukHL0K_3DINa62or_5 X-Yahoo-Newman-Property: ymail-3 Date: Mon, 18 Apr 2011 09:25:50 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@router.home To: Shaohua Li cc: Tejun Heo , "linux-kernel@vger.kernel.org" , "akpm@linux-foundation.org" , "eric.dumazet@gmail.com" Subject: Re: [patch v3 3/3] percpu_counter: use atomic64 for counter in SMP In-Reply-To: <1303112625.3981.191.camel@sli10-conroe> Message-ID: References: <20110414020447.979946152@sli10-conroe.sh.intel.com> <20110414020747.411215973@sli10-conroe.sh.intel.com> <20110415041506.GC29512@mtj.dyndns.org> <1303112625.3981.191.camel@sli10-conroe> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 800 Lines: 20 On Mon, 18 Apr 2011, Shaohua Li wrote: > > Disabling preemption here doesn't make any sense. > > percpu_counter_set() inherently requires its users to guarantee that > > no other user is modifying the percpu counter. > ha, ok. > should I still rebase the patch against Christoph's patch? Looks that > one is still not settled down. I am a kind of confused about some of the arguments made there right now and having your patch in that does the conversion to atomic would simplify my patch (removes the spin_lock/unlock sequence in overflow handling). -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/