From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938999AbcIHJnN (ORCPT ); Thu, 8 Sep 2016 05:43:13 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:43145 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932342AbcIHJnM (ORCPT ); Thu, 8 Sep 2016 05:43:12 -0400 Date: Thu, 8 Sep 2016 11:40:17 +0200 (CEST) From: Thomas Gleixner To: Fenghua Yu cc: "H. Peter Anvin" , Ingo Molnar , Tony Luck , Peter Zijlstra , Tejun Heo , Borislav Petkov , Stephane Eranian , Marcelo Tosatti , David Carrillo-Cisneros , Shaohua Li , Ravi V Shankar , Vikas Shivappa , Sai Prakhya , linux-kernel , x86 Subject: Re: [PATCH v2 09/33] x86/intel_rdt: Add L3 cache capacity bitmask management In-Reply-To: <1473328647-33116-10-git-send-email-fenghua.yu@intel.com> Message-ID: References: <1473328647-33116-1-git-send-email-fenghua.yu@intel.com> <1473328647-33116-10-git-send-email-fenghua.yu@intel.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 8 Sep 2016, Fenghua Yu wrote: > > + for_each_online_cpu(i) > + rdt_cpumask_update(i); The only reason why this does not blow up in your face is that at this point the secondary cpus have been brought up already and user space is not yet running, so cpu hotplug cannot happen in parallel. Protection by chance is never a good idea. Thanks, tglx