From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966269Ab3DQL6X (ORCPT ); Wed, 17 Apr 2013 07:58:23 -0400 Received: from relay1.sgi.com ([192.48.179.29]:45623 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966128Ab3DQL6W (ORCPT ); Wed, 17 Apr 2013 07:58:22 -0400 Date: Wed, 17 Apr 2013 06:58:20 -0500 From: Robin Holt To: "Srivatsa S. Bhat" Cc: Robin Holt , Ingo Molnar , Ingo Molnar , Russ Anderson , Shawn Guo , Oleg Nesterov , Andrew Morton , "H. Peter Anvin" , Joe Perches , Lai Jiangshan , Linus Torvalds , Linux Kernel Mailing List , Michel Lespinasse , "Paul E. McKenney" , Paul Mackerras , Peter Zijlstra , "rusty@rustcorp.com.au" , Tejun Heo , the arch/x86 maintainers , Thomas Gleixner Subject: Re: [Patch -v4 1/4] Migrate shutdown/reboot to boot cpu. Message-ID: <20130417115820.GF3658@sgi.com> References: <20130416095827.GJ3672@sgi.com> <20130416113256.GA10452@gmail.com> <20130416120624.GO3658@sgi.com> <516D72B7.2040608@linux.vnet.ibm.com> <20130416162238.GT3658@sgi.com> <20130417074835.GB31607@gmail.com> <20130417100317.GE3658@sgi.com> <516E880C.9050402@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <516E880C.9050402@linux.vnet.ibm.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > The get/put_online_cpus() doesn't help in this case, because if a > hotplug operation is started _after_ this function returns, then > your task will get force migrated - which makes the get/put_online_cpus() > pointless. What we need to do is *disable* CPU hotplug altogether. > We need not even enable it back, since we are rebooting/powering off > anyway. > > So how about using the following patch in your series and using > cpu_hotplug_disable() to achieve the goal? I will incorporate it before my patch and utilize. Thank you very much as I was at a loss as to what I should be doing. Robin