Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752467Ab3HZVuL (ORCPT ); Mon, 26 Aug 2013 17:50:11 -0400 Received: from shelob.surriel.com ([74.92.59.67]:38113 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752373Ab3HZVuG (ORCPT ); Mon, 26 Aug 2013 17:50:06 -0400 Message-ID: <521BCD7F.8010501@surriel.com> Date: Mon, 26 Aug 2013 17:49:51 -0400 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Peter Zijlstra CC: Paul Turner , Ingo Molnar , Joonsoo Kim , LKML , Mike Galbraith , Alex Shi , Preeti U Murthy , Vincent Guittot , Morten Rasmussen , Namhyung Kim , Lei Wen , Joonsoo Kim Subject: Re: [PATCH 09/10] sched, fair: Fix the sd_parent_degenerate() code References: <20130819160058.539049611@infradead.org> <20130819160425.672255367@infradead.org> <20130826120919.GL31370@twins.programming.kicks-ass.net> In-Reply-To: <20130826120919.GL31370@twins.programming.kicks-ass.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1513 Lines: 34 On 08/26/2013 08:09 AM, Peter Zijlstra wrote: > On Sat, Aug 24, 2013 at 03:45:57AM -0700, Paul Turner wrote: >>> @@ -5157,6 +5158,13 @@ cpu_attach_domain(struct sched_domain *s >>> tmp->parent = parent->parent; >>> if (parent->parent) >>> parent->parent->child = tmp; >>> + /* >>> + * Transfer SD_PREFER_SIBLING down in case of a >>> + * degenerate parent; the spans match for this >>> + * so the property transfers. >>> + */ >>> + if (parent->flags & SD_PREFER_SIBLING) >>> + tmp->flags |= SD_PREFER_SIBLING; >>> destroy_sched_domain(parent, cpu); >>> } else >>> tmp = tmp->parent; >>> >> >> Reviewed-by: Paul Turner > > BTW, did that comment make sense to you or would you suggest something > different? I had/am having a hard time with that comment. Somehow it > leaves me wanting. I know I understand the issue now, but I'll doubt the > comment will suffice in a years time :/ The comment made sense to me :) -- All rights reversed. -- 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/