Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3716484imu; Tue, 18 Dec 2018 03:03:53 -0800 (PST) X-Google-Smtp-Source: AFSGD/UJQwqBpA7PmEaGdW+H6fOd0cK/gbvhUSqNYCASeqcOuLhte/c1yeKuWvPjKk+TKVRNRwc3 X-Received: by 2002:a63:d047:: with SMTP id s7mr15213409pgi.311.1545131033516; Tue, 18 Dec 2018 03:03:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545131033; cv=none; d=google.com; s=arc-20160816; b=GPZmvDbu6Arf6BMe7jx+Q0yZgC8itoqj2VZ6Q6UyhvzG5EfBtfr2M9BHArxeXy1eEJ TGC229jY+dIHtt/TLih8hvAxPwh72waWBWOT/2e3urWf2rT4UF76mjBEyhCsM8240D71 hKw9Xj378L1bxBA92SvZdvg8pD0R80uivxzxhLQu7BTaRhusiMz8CEqpjq4DyPSwGszU 7qEOWe+0Bevr7K2sPHqm+f3f3DsFXlR2SW30N+TudbcPiXlDcY7vLMDQxgQqys5uK1uy 5uQVhSKj9HX1DBB6nPvWdteB8/mPiSgRp1QYeZRrYDmXRXDlwHrnjvyIzNLtdVtg14/B BPNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KVDyShIHy6Q3LiFxJcfGuwsez7qnc/pFs5hzLCu6bag=; b=XZY76XD29V4CvQ6MwYbmseP/nQ0ishz3AH5OIrgd3EQFwF/o9KrxP+3OhlKPRncQ09 q9YMRClEEmsBe6ZCy0yTTLm9JS98ARQofJE9tDm/HmpfsEVNpse2QtNFjolBsOL6adNo TzGmym8d2V7ETvUjvcWHzhP6s7cHLFtKuVZgv6ub9ZFlvEDeTBhYxzqieQbVx/yyzet1 jScOsmKjBCwmef/ZLqo1L3kqmmfchrzAXbwYc5WYpwifkrAT5NAyjvl1U3GBMcc+DA5I V5D1x/2d355ZFxvAokgcUARGfbB4LLUuBq1uTje+rWzoInn1WokNFAl7JyD/wbwCjqIv dcqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=wiNfxZ7S; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c136si13342938pfc.141.2018.12.18.03.03.36; Tue, 18 Dec 2018 03:03:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=wiNfxZ7S; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726817AbeLRLCY (ORCPT + 99 others); Tue, 18 Dec 2018 06:02:24 -0500 Received: from merlin.infradead.org ([205.233.59.134]:36482 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726583AbeLRLCX (ORCPT ); Tue, 18 Dec 2018 06:02:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KVDyShIHy6Q3LiFxJcfGuwsez7qnc/pFs5hzLCu6bag=; b=wiNfxZ7SgvTiBCRT1coJK685D mYWu5C9ruhS1qBGmhl2YMwwCUVoFJBgxfQaxymeJH6fUvW+9jpJrldJ33zts9WG7U/z1SXEiQNA02 iPCukchJVLFFh4F1YHYUmxXnedUKuXc6sD4QufeUC+7q6BdSmQHigiVYx7JWe8ubsLHbPithAVraF n0tmG8tMyLoKEqt93EBW6Q4nX/2Np+urSOCXt6EhMq8R4OYVa8js62aRsdZJioeBK6ZVI9wOpo5Mm nCr2At3a3iCvDvhBFkS64XIdungw1JvleO8oHcmvltVBN1Euhes26xAfTaiDKFxisV/43/gyz1UUB JtgJQi/ng==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZD8d-0007Vx-SZ; Tue, 18 Dec 2018 11:02:12 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 019A82027B9FA; Tue, 18 Dec 2018 12:02:09 +0100 (CET) Date: Tue, 18 Dec 2018 12:02:09 +0100 From: Peter Zijlstra To: zhe.he@windriver.com Cc: acme@kernel.org, ak@linux.intel.com, alexander.shishkin@linux.intel.com, bp@alien8.de, hpa@zytor.com, jolsa@kernel.org, jolsa@redhat.com, kan.liang@linux.intel.com, mingo@redhat.com, namhyung@kernel.org, tglx@linutronix.de, x86@kernel.org, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org Subject: Re: [PATCH] perf/x86/intel: Avoid unnecessary reallocations of memory allocated in cpu hotplug prepare state Message-ID: <20181218110209.GD15430@hirez.programming.kicks-ass.net> References: <1545129033-21757-1-git-send-email-zhe.he@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1545129033-21757-1-git-send-email-zhe.he@windriver.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 18, 2018 at 06:30:33PM +0800, zhe.he@windriver.com wrote: > Besides, in preempt-rt full mode, the freeing can happen in atomic context and > thus cause the following BUG. Hurm, I though we fixed all those long ago.. And no, the patch is horrible; that's what we have things like x86_pmu::cpu_dead() for.