Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758361AbYBRHtp (ORCPT ); Mon, 18 Feb 2008 02:49:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754322AbYBRHth (ORCPT ); Mon, 18 Feb 2008 02:49:37 -0500 Received: from fg-out-1718.google.com ([72.14.220.157]:60823 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754150AbYBRHtg (ORCPT ); Mon, 18 Feb 2008 02:49:36 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=vF5iW/dgdz8m5ZM6qJoMPoK63Ijw2N0y4aEJ6x+m0nLH/x0ZbqPLN6LchV/53NPr4RlFFUXHMBM5TGxwY+JYfizlUMxxdCU3H1sBdx/V/rcfFbl77FgfNb7pz2o9zJqiqpYGxt9cvSA3n0DuwWtGQx+f8qsK6oW31UjEfqYp320= Date: Mon, 18 Feb 2008 07:50:26 +0000 From: Jarek Poplawski To: Oleg Nesterov Cc: Andrew Morton , Dipankar Sarma , Gautham R Shenoy , Jarek Poplawski , Srivatsa Vaddagiri , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] workqueues: shrink cpu_populated_map when CPU dies Message-ID: <20080218075025.GA3923@ff.dom.local> References: <20080216172259.GA18524@tv-sign.ru> <20080217202739.GA2994@ami.dom.local> <20080217234556.GA655@tv-sign.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080217234556.GA655@tv-sign.ru> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 946 Lines: 25 On Mon, Feb 18, 2008 at 02:45:56AM +0300, Oleg Nesterov wrote: > On 02/17, Jarek Poplawski wrote: ... > > 1) ... workqueue_cpu_callback(...) ... > Yes, but this is harmless. cpu-hotplug callbacks are not time-critical, > and cpu_down/cpu_up happens not often, and LIST_HEAD(workqueues) is not > very long, so ... > > > 2) ... __create_workqueue_key(...) ... > > Shouldn't this list_add() be done after all these inits below? > This doesn't matter. Please note that get_online_cpus() blocks > cpu_up/cpu_down, they take cpu_hotplug_begin(). You are completely right. It looks like this was only about ..."look". (But adding only "default:" in 1) would make it look nicer to me...) Regards, Jarek P. -- 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/