Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751914AbdHaNzC (ORCPT ); Thu, 31 Aug 2017 09:55:02 -0400 Received: from mail-yw0-f178.google.com ([209.85.161.178]:35818 "EHLO mail-yw0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751622AbdHaNzB (ORCPT ); Thu, 31 Aug 2017 09:55:01 -0400 X-Google-Smtp-Source: ADKCNb78qOfzpdG4keedm7hN5reAC9R3DDE80UTQZ5I4FKCjKdb3uKapt7md42jL6E91w9Zjfg3uKA== Date: Thu, 31 Aug 2017 09:54:59 -0400 From: Josef Bacik To: Brendan Jackman Cc: Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org, Dietmar Eggemann , Vincent Guittot , Josef Bacik , Morten Rasmussen Subject: Re: [PATCH v3 5/5] sched/fair: Fix use of find_idlest_group when local group is idlest Message-ID: <20170831135459.ilgktukuchws2kny@destiny> References: <20170831115802.26365-1-brendan.jackman@arm.com> <20170831115802.26365-6-brendan.jackman@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170831115802.26365-6-brendan.jackman@arm.com> User-Agent: NeoMutt/20170714 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 557 Lines: 16 On Thu, Aug 31, 2017 at 12:58:02PM +0100, Brendan Jackman wrote: > find_idlest_group returns NULL when the local group is idlest. The > caller then continues the find_idlest_group search at a lower level > of the current CPU's sched_domain hierarchy. find_idlest_group_cpu is > not consulted and, crucially, @new_cpu is not updated. This means the > search is pointless and we return @prev_cpu from select_task_rq_fair. > > This is fixed by initialising @new_cpu to @cpu instead of > @prev_cpu. > Reviewed-by: Josef Bacik Thanks, Josef