From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [patch 10/20] cpu/hotplug: Make target state writeable Date: Sat, 27 Feb 2016 00:46:18 +0100 Message-ID: <6355023.m2RKuauZef@vostro.rjw.lan> References: <20160226164321.657646833@linutronix.de> <20160226182341.022814799@linutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7Bit Return-path: Received: from v094114.home.net.pl ([79.96.170.134]:46643 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755700AbcBZXon (ORCPT ); Fri, 26 Feb 2016 18:44:43 -0500 In-Reply-To: <20160226182341.022814799@linutronix.de> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Thomas Gleixner Cc: LKML , Linus Torvalds , Andrew Morton , Ingo Molnar , Peter Zijlstra , Peter Anvin , Oleg Nesterov , linux-arch@vger.kernel.org, Tejun Heo , Steven Rostedt , Rusty Russell , Paul McKenney , Rafael Wysocki , Arjan van de Ven , Rik van Riel , "Srivatsa S. Bhat" , Sebastian Siewior , Paul Turner Hi Thomas, On Friday, February 26, 2016 06:43:32 PM Thomas Gleixner wrote: > Make it possible to write a target state to the per cpu state file, so we can > switch between states. One thing that potentially may be problematic here is that any kind of "offline" operations needs to be carried out under device_hotplug_lock, because there are cases in which devices (including CPUs) are taken offline in groups and if one offline fails, the whole operation has to be rolled back. So if you put a CPU into one of the intermediate states manually and something like the above happens in parallel with it, they may not play well together IMO. Thanks, Rafael