Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4305564pxj; Wed, 12 May 2021 02:38:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7VnmBovd3IVKmNUVZMBsO13ZlDAN93h5SpZqN6lYAgpM3vdqX/mF3ZnUmgG+8Q1bFJfQJ X-Received: by 2002:a17:906:82c2:: with SMTP id a2mr36915787ejy.84.1620812317225; Wed, 12 May 2021 02:38:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620812317; cv=none; d=google.com; s=arc-20160816; b=C1EqYEXpILL7EeBNBtHCGTi1gvJeVABIBYuWtyRdJs44VJHhboLVBE9CBi8f3weYRJ Wwqd9UwN9CHsOwJ4gVfBtWkXw2N5DuOOTD8aq29T+87q/L/+BgtEmegrAe1pjJY1GkIw wzY80+T9K7IfXWBf8YW5r65WcmFFYZMZGfzLLmuraPKMcuo5fFgH7xyocpFTvG+7qe7k kuSN+cKwquB10fzcGiCbXGx5uoWoXnp5JpTgqUuXRuCcplZ57xEZPSMbT/USIzAYRuXK SaaWwig1E6q3DCWT+7LtLd1hSk9Rqd9TNpCkfWcr2So/tv3x0rOLUZFp5u0y7RZs19EA B0DQ== 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=dXnrQikcCfOUvytGhAWySk6PCwU4Gt2ixLQp3WDf4AQ=; b=EtQDTSuKxkX/v71aRwnnFVYZ5jv4gE9UiybG3oNzhhrZbywxVdOGCN7ohxOXlxWz1G fSF9/I5plq6W6LAACTMXpofUlf/+WPO32ciD/yGukpDpXr0nDcqkKOpXHDGgwNfeMFWP 21Au7wQJ6x/FkkKOrpBx1Kb4kwABXK2lUvmhQo1MgSsDRNmWNhDaqCG7g85R+qCe3CSJ aTwNEOFg/e/R6aLe9SUtDhxPH2AZaMd3tZJpR/QMtCmmDyb+Cgt3MsM/Ztlizl1oymJS eefLzNmlgRawCs8V0dVgvUrCatgAB4QWR6H7SmeecaOHmNG3boS+CBHNGaBiIa0cYZc9 8ASQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=DSa92xT9; 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 mh19si19790569ejb.312.2021.05.12.02.38.14; Wed, 12 May 2021 02:38:37 -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=DSa92xT9; 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 S230102AbhELJi2 (ORCPT + 99 others); Wed, 12 May 2021 05:38:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbhELJi2 (ORCPT ); Wed, 12 May 2021 05:38:28 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC041C061574 for ; Wed, 12 May 2021 02:37:20 -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=dXnrQikcCfOUvytGhAWySk6PCwU4Gt2ixLQp3WDf4AQ=; b=DSa92xT9ZL1WeODw4HG0VkoHN4 x21MTl71QWsdRfG5umBGK1jbQeEfyH0i6v8KYdXR1kKipprtrjCMqc6lVlnNuKbmdgn8z5x+uGK7p 3F+Tx0BTkseH4dGMLVL3BwIgSIWWq8s7/7yD+RB+gj5xN1Wpz6BIb6WMNQz0fCsY0rcq1Ewq9Ulk/ sUyV2KsvaoI+PCphqGvci/AhqjswmV1SR6naoe4Pc7HUwlCGPeTXfgZSyv8FP0ykVA5WR+x7qnqjf pjFPsliiHCmLo6VGChLkpKoFOz869Je5v8eiIE8VpEkL6LkTGt7JhS0Vr4vPQ9TLkQvdN51saBSOs eXIZaX6A==; 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 1lglCV-0088bR-EN; Wed, 12 May 2021 09:32:31 +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 BFBA13002C1; Wed, 12 May 2021 11:30:42 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AC35B2B86E5EC; Wed, 12 May 2021 11:30:42 +0200 (CEST) Date: Wed, 12 May 2021 11:30:42 +0200 From: Peter Zijlstra To: "Gautham R. Shenoy" Cc: Mel Gorman , Ingo Molnar , Vincent Guittot , Srikar Dronamraju , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] sched/fair: Fix clearing of has_idle_cores flag Message-ID: References: <1620746169-13996-1-git-send-email-ego@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1620746169-13996-1-git-send-email-ego@linux.vnet.ibm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 11, 2021 at 08:46:09PM +0530, Gautham R. Shenoy wrote: > From: "Gautham R. Shenoy" > > In commit 9fe1f127b913 ("sched/fair: Merge select_idle_core/cpu()"), > in select_idle_cpu(), we check if an idle core is present in the LLC > of the target CPU via the flag "has_idle_cores". We look for the idle > core in select_idle_cores(). If select_idle_cores() isn't able to find > an idle core/CPU, we need to unset the has_idle_cores flag in the LLC > of the target to prevent other CPUs from going down this route. > > However, the current code is unsetting it in the LLC of the current > CPU instead of the target CPU. This patch fixes this issue. > > Fixes: Commit 9fe1f127b913 ("sched/fair: Merge select_idle_core/cpu()") > Acked-by: Mel Gorman > Reviewed-by: Vincent Guittot > Reviewed-by: Srikar Dronamraju > Signed-off-by: Gautham R. Shenoy Thanks!