Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754635Ab3HBKdH (ORCPT ); Fri, 2 Aug 2013 06:33:07 -0400 Received: from merlin.infradead.org ([205.233.59.134]:44038 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752925Ab3HBKdF (ORCPT ); Fri, 2 Aug 2013 06:33:05 -0400 Date: Fri, 2 Aug 2013 12:32:47 +0200 From: Peter Zijlstra To: Preeti U Murthy Cc: =?utf-8?B?6rmA7KSA7IiY?= , "'Ingo Molnar'" , linux-kernel@vger.kernel.org, "'Mike Galbraith'" , "'Paul Turner'" , "'Alex Shi'" , "'Vincent Guittot'" , "'Morten Rasmussen'" , "'Namhyung Kim'" , "'Joonsoo Kim'" Subject: Re: [PATCH v2 2/3] sched: factor out code to should_we_balance() Message-ID: <20130802103247.GL27162@twins.programming.kicks-ass.net> References: <1375408223-10934-1-git-send-email-iamjoonsoo.kim@lge.com> <1375408223-10934-3-git-send-email-iamjoonsoo.kim@lge.com> <51FB341B.7060104@linux.vnet.ibm.com> <001601ce8f5f$7cbe1460$763a3d20$@lge.com> <51FB7B36.8030909@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51FB7B36.8030909@linux.vnet.ibm.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 842 Lines: 20 On Fri, Aug 02, 2013 at 02:56:14PM +0530, Preeti U Murthy wrote: > >> You need to iterate over all the groups of the sched domain env->sd and > >> not just the first group of env->sd like you are doing above. This is to > > > > I don't think so. > > IIRC, env->sd->groups always means local group, > > so we don't need to find our group by iterating over all the groups. > > Take a look at update_sd_lb_stats(). That should clarify this. There is > an exclusive > local_group check there. > > sd->groups points to the first group in the list of groups under this sd. Take a look at: 88b8dac0a -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/