Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758464AbXJXSNP (ORCPT ); Wed, 24 Oct 2007 14:13:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756352AbXJXSM6 (ORCPT ); Wed, 24 Oct 2007 14:12:58 -0400 Received: from x346.tv-sign.ru ([89.108.83.215]:51498 "EHLO mail.screens.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755767AbXJXSM5 (ORCPT ); Wed, 24 Oct 2007 14:12:57 -0400 Date: Wed, 24 Oct 2007 22:17:54 +0400 From: Oleg Nesterov To: Gautham R Shenoy Cc: Christoph Lameter , Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, Rusty Russel , Srivatsa Vaddagiri , Dipankar Sarma , Ingo Molnar , Paul E McKenney , Richard Gooch , Tigran Aivazian , Shoahua Li , Ralf Baechle , Heiko Carstens , Nathan Lynch , David Miller , Paul Jackson , Josh Triplett , Pekka Enberg , Akinobu Mita Subject: Re: [RFC PATCH 0/5] Refcount based Cpu Hotplug. V2 Message-ID: <20071024181754.GC345@tv-sign.ru> References: <20071024052931.GA22722@in.ibm.com> <20071024180034.GB8663@in.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071024180034.GB8663@in.ibm.com> User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 918 Lines: 26 On 10/24, Gautham R Shenoy wrote: > > On Wed, Oct 24, 2007 at 10:04:41AM -0700, Christoph Lameter wrote: > > On Wed, 24 Oct 2007, Gautham R Shenoy wrote: > > > > > This is the version 2 of the refcount based cpu-hotplug "locking" > > > implementation. > > > > Uggh. This introduces a global lock that has to be taken always when > > scanning over cpus? > > Well, no! we take the global lock only while bumping up the refcount. > We don't hold the lock while scanning over the cpus. And this is > definitely an improvement over the lock_cpu_hotplug() global mutex > we have now. Just to be sure I didn't miss something... preempt_disable() still works, yes? Oleg. - 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/