Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp6369pxy; Tue, 20 Apr 2021 11:10:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYV2YkJb10MrOKoOPTfZ/ZjFkTIHX5uQyXEl9xLawNLWhlA1xEu+6nMNkE3bHZgtZBy3k2 X-Received: by 2002:a63:8948:: with SMTP id v69mr18095926pgd.264.1618942220484; Tue, 20 Apr 2021 11:10:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618942220; cv=none; d=google.com; s=arc-20160816; b=Wt+E0zrbgHjrL8Iu+ztDdK8fgRmggVT4OSDYn5vdSFrVMIsYQVBJ9QXLZSIR7wVwIH 2XsdYpUueHDVEOW21u4P/m7C1Z3hZIweBU8KXPEJBOA8pIaqsB9iBTI5RP01k8VnZY6R IhkSoGPf5qVHuxxBeP9SHJxglxJieKLGK8UBayDGY6A+UyH3emidAAFJWoBO9dJFCh2j WEANdSoH97ga+6/N7tJEEmQl0MZpDY2gOPm9m653FWjVuv/mg3Ye7WBN/RO6KhQiCldh Q/bOnQcODv+NtaobLV+DZyHv5p68g2VXqVeTGytrUwmx/d4RSF1u5/t92jbHNJWaXjzF Wetw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SPTMAO5GTaDQ+7NUwJdz95Zoo+fxOIqSbvNGNaKE5VM=; b=hM4LL6UxRwTr1sRbQhVaMF2uNJKm32yDNhWDq66AIcnK/9cVlsYcfUmUBOaNXVQ1ls 2oDjQ7OKPqpHl1jIFyJ0XcSWvT0DEfhla0APSDxpttxDIH4h3WSO1WAm1nX6a6bPoss+ e86YLysQXqzxJE2qUd3aZxOIvSngpF1xY+77fprFDItyJyUPE3r9a/tR/n6pQ7TgZJCY Tmv953cSC7AJXxewoHGollvfgCoFh4CXhWQ7Et34Cj3exQZ0ggL6U5ZpC2R/ficJPUNF Tl58mLrLB+dKxrsvP4TLI5P7AGb1E2M4vQLhYghc/aC3eqaXlCFa4UQ94BgDQhph3eVv sADw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WZ1N1anm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g9si3830464pjs.80.2021.04.20.11.10.06; Tue, 20 Apr 2021 11:10:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=WZ1N1anm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233245AbhDTSKD (ORCPT + 99 others); Tue, 20 Apr 2021 14:10:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232879AbhDTSKC (ORCPT ); Tue, 20 Apr 2021 14:10:02 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70E6CC06174A for ; Tue, 20 Apr 2021 11:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=SPTMAO5GTaDQ+7NUwJdz95Zoo+fxOIqSbvNGNaKE5VM=; b=WZ1N1anmpOgQWJZdY7LRbc672x rjSJ0EpV7jJHpIS3UBxWs0G1IgPY1YmwX8SaYO8yuILXbJPlKc3pG92GvC7EXBfqqyMqMVr5MEA+G 44HhCJwEgHBJd+UcKD2J4z5lLF9nZcNrhhnDsHQ2D0NyTUWNkRH+lwSev36rXJE5ZQLo5ZJwm6ejw UFT/XAsMqf5XUHBjJPeG7O/k6yc9I22HrNxUkFQvcO5WweI0JdGMVQja3OuVSv7m22Jbbdqh1M3PZ UvUEML3cNwTEMKzoZeAFam9hR/IMNQH6g/ZgRqHaVsQX2OE1Kn9vS5MuwzkIAofsurLcstOui2CsI ycWNi+GA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lYumE-00FTmN-0Q; Tue, 20 Apr 2021 18:07:16 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id BC5B730013E; Tue, 20 Apr 2021 20:07:08 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 80FE4201F6C23; Tue, 20 Apr 2021 20:07:08 +0200 (CEST) Date: Tue, 20 Apr 2021 20:07:08 +0200 From: Peter Zijlstra To: Vincent Donnefort Cc: Valentin Schneider , tglx@linutronix.de, mingo@kernel.org, bigeasy@linutronix.de, swood@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, qais.yousef@arm.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] sched: Use cpu_dying() to fix balance_push vs hotplug-rollback Message-ID: References: <87r1jfmn8d.mognet@arm.com> <87a6pzmxec.mognet@arm.com> <20210419105541.GA40111@e120877-lin.cambridge.arm.com> <20210420094632.GA165360@e120877-lin.cambridge.arm.com> <20210420165340.GA231208@e120877-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210420165340.GA231208@e120877-lin.cambridge.arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 20, 2021 at 05:53:40PM +0100, Vincent Donnefort wrote: > All good with that snippet on my end. > > I wonder if balance_push() shouldn't use the cpu_of() accessor > instead of rq->cpu. That might be a personal quirk of mine, but for code that is under CONFIG_SMP (as all balancing code must be) I tend to prefer the more explicit rq->cpu usage. cpu_of() obviously also works. > Otherwise, > > + Reviewed-by: Vincent Donnefort Thanks!, now I get to write a Changelog :-)