From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031098Ab2CSM1m (ORCPT ); Mon, 19 Mar 2012 08:27:42 -0400 Received: from e23smtp05.au.ibm.com ([202.81.31.147]:32982 "EHLO e23smtp05.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758334Ab2CSM1l (ORCPT ); Mon, 19 Mar 2012 08:27:41 -0400 Message-ID: <4F672629.60606@linux.vnet.ibm.com> Date: Mon, 19 Mar 2012 17:57:22 +0530 From: "Srivatsa S. Bhat" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.1) Gecko/20120209 Thunderbird/10.0.1 MIME-Version: 1.0 To: Peter Zijlstra CC: Linus Torvalds , Andrew Morton , Thomas Gleixner , Ingo Molnar , Paul Turner , Suresh Siddha , Mike Galbraith , "Paul E. McKenney" , Lai Jiangshan , Dan Smith , Bharata B Rao , Lee Schermerhorn , Andrea Arcangeli , Rik van Riel , Johannes Weiner , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC][PATCH 15/26] sched, numa: Implement hotplug hooks References: <20120316144028.036474157@chello.nl> <20120316144241.074193109@chello.nl> <4F672384.7030500@linux.vnet.ibm.com> <1332159598.18960.320.camel@twins> In-Reply-To: <1332159598.18960.320.camel@twins> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit x-cbid: 12031902-1396-0000-0000-000000D5FE7F Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/19/2012 05:49 PM, Peter Zijlstra wrote: > On Mon, 2012-03-19 at 17:46 +0530, Srivatsa S. Bhat wrote: >>> + get_online_cpus(); >>> + cpu_notifier(numa_hotplug, 0); >> >> >> ABBA deadlock! >> > Yeah, I know.. luckily it can't actually happen since early_initcalls > are pre-smp. I could just leave out the get_online_cpus() thing. > Oh numa_init() is an early_initcall? Ok, I didn't observe. In that case, its fine either way, with or without get_online_cpus() stuff. Regards, Srivatsa S. Bhat