Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758445Ab2JSLSW (ORCPT ); Fri, 19 Oct 2012 07:18:22 -0400 Received: from casper.infradead.org ([85.118.1.10]:47345 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751444Ab2JSLSV convert rfc822-to-8bit (ORCPT ); Fri, 19 Oct 2012 07:18:21 -0400 Message-ID: <1350645484.30157.3.camel@twins> Subject: Re: [PATCH] Do not use cpu_to_node() to find an offlined cpu's node. From: Peter Zijlstra To: David Rientjes Cc: Tang Chen , Andrew Morton , mingo@redhat.com, miaox@cn.fujitsu.com, wency@cn.fujitsu.com, linux-kernel@vger.kernel.org, linux-numa@vger.kernel.org Date: Fri, 19 Oct 2012 13:18:04 +0200 In-Reply-To: References: <1349665183-11718-1-git-send-email-tangchen@cn.fujitsu.com> <1349780256.7880.12.camel@twins> <1349815676.7880.85.camel@twins> <1349860216.7880.105.camel@twins> <20121010133709.7eaefcdb.akpm@linux-foundation.org> <507F6EB3.7030705@cn.fujitsu.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1034 Lines: 25 On Wed, 2012-10-17 at 20:29 -0700, David Rientjes wrote: > > Ok, thanks for the update. I agree that we should be clearing the mapping > at node hot-remove since any cpu that would subsequently get onlined and > assume one of the previous cpu's ids is not guaranteed to have the same > affinity. Would this mean we have to remap (and memcpy) per-cpu memory on node-plug? > I'm just really hoping that we don't touch the acpi code and that we can > remove both cpu_hotplug-unmap-cpu2node-when-the-cpu-is-hotremoved.patch > and cpu_hotplug-unmap-cpu2node-when-the-cpu-is-hotremoved-fix.patch from > -mm. Yeah, none of this should be anywhere near ACPI, its got nothing to do with ACPI. Furthermore it should be be same across all archs, not just be weird and wonderful for x86. -- 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/