Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4283425pxy; Tue, 27 Apr 2021 00:56:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxb/zEKLfSFKWIXe4NfxVbDsHhalRO6jwDVpyYaIf6eyAt8SixrdKoz5XFggQoTv3VuG+6 X-Received: by 2002:a62:7944:0:b029:253:f31f:fad5 with SMTP id u65-20020a6279440000b0290253f31ffad5mr22232904pfc.43.1619510184430; Tue, 27 Apr 2021 00:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619510184; cv=none; d=google.com; s=arc-20160816; b=oiRzSMzI1f+XVSeF4+9y7b1SlcARIXfHL6X6ob2spxJ4lbB1vsToKdRkLhvYAfI8cU 84yXzh1ffgHopJwWCdIEkJRdMVlEfen+fc3HzLPleqsGaIPoZeTm6HzbX0KI7mkD7Cah PsHfKOjompk+mibFqNqctkV8i8T10n0Yy6Ga0HRddaIMT4OOWxmfkH57j9JEswno+t3g iG9nfh0rMIlhPBFbPbxufLEHn3/BI24QEbeZ+Z3WR8cYA07Z79hEvXXzG5gkKu/Q3RwY WuOqVQjQj/eeeK3HfAa+m5X5+9R8ZJCTlM2SfhTEw5+1h+4Sav6/mM1FXCRgVJcYw6EO yqzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Z8i+EKzSN9b5TFqVKCia8p6M7LHo48np8EPvJa3obO0=; b=FAamBGmAu7eL3Mk4nFuvU7T3yB99iijyIqr60IDC3CFlQX5+feBtsfL6RRjekiGdn8 /ORTpWsyvX/lawfqtBevIq1sZEh30kLSpAs6VXa74M0Jby0nYwuf81aqHr+UW7ubjA0f VpDa3tOh1yiBECQ2TpM2zt3TPP9JqnohejB9CpE5Q8mHC7iH8THmJDwc6O5CLu1EGsB/ oh6eZI70CFKV3eJCt6dwDKYQE/9/oEMjGswhxmTyN0dAho3SsLjgv5vTiOmFp5GaGCjg 3X3BGUzmjsZLLNUE5LAJ2CH3vqWNthRcsvcjZvxNAj4Z2jxlZj4q7hgu/u5b7KPABnWm 5dnw== ARC-Authentication-Results: i=1; mx.google.com; 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 65si6868293ple.127.2021.04.27.00.56.11; Tue, 27 Apr 2021 00:56:24 -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; 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 S231161AbhD0H4Y (ORCPT + 99 others); Tue, 27 Apr 2021 03:56:24 -0400 Received: from outbound-smtp15.blacknight.com ([46.22.139.232]:45119 "EHLO outbound-smtp15.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230348AbhD0H4Y (ORCPT ); Tue, 27 Apr 2021 03:56:24 -0400 Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp15.blacknight.com (Postfix) with ESMTPS id 622691C66F9 for ; Tue, 27 Apr 2021 08:55:40 +0100 (IST) Received: (qmail 809 invoked from network); 27 Apr 2021 07:55:40 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.17.248]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 27 Apr 2021 07:55:40 -0000 Date: Tue, 27 Apr 2021 08:55:38 +0100 From: Mel Gorman To: "Gautham R. Shenoy" Cc: "Peter Zijlstra (Intel)" , Ingo Molnar , Vincent Guittot , Srikar Dronamraju , linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/fair: Fix unsetting of "has_idle_cores" flag Message-ID: <20210427075538.GF4239@techsingularity.net> References: <1619456652-19143-1-git-send-email-ego@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1619456652-19143-1-git-send-email-ego@linux.vnet.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 26, 2021 at 10:34:12PM +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()") > Cc: Mel Gorman > Signed-off-by: Gautham R. Shenoy Acked-by: Mel Gorman -- Mel Gorman SUSE Labs