Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2747071ybk; Tue, 12 May 2020 07:12:57 -0700 (PDT) X-Google-Smtp-Source: APiQypLMuWQlnma0DMi87hzgQ7zxy/iJV/YJzPkMrQ97Pjny2GbHeynzPU9rkHK4mrCPL8+21TtK X-Received: by 2002:a05:6402:286:: with SMTP id l6mr11646387edv.253.1589292777175; Tue, 12 May 2020 07:12:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589292777; cv=none; d=google.com; s=arc-20160816; b=gXgkm97DHB8gYduqluMPxJfnKL+4vX0om5mgzaMWLU44zoSRHVtx7nQOaC9li1MlEs ebYm9BSONSmPG/kqvrU/Qswj59/FYRvQXKMPQry9rBGyvxr0BiErkSKQvsQ2+HkdWO7E LYWwtMW3uEVAt/DZCQDzZ/COjqKqgDFnDoNE0uzD2YQn6esGYR41/4anE7gQ5ylskM8M oiLmr442hM1L40aH16+quWU3UY2C/4JSZx/3ReBBZJYzkDkcjcWsqJvlvTBSFQVkXUTG oJF98o3Y9Jmrohg7n+/pIt9ArPI9nxUxPNxclBc8CjA7KYyJ1QDaiQotNrhzlXdvrhGt WWdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=NO+sRIrtcWsU8pzSoEXB29WcYJfcotevuQ/7ctpOgOc=; b=VI/cJrBikx/OubUqYcIuwVZgIuY9TBHrAY09gqJUidHQWtVh+rSnZi8LtWLf14IGJJ tIAe30NhCGD3Ow/6WIrF5jwHfP9fdTSOBEWRoKUCR/lVun46k2GhN1IEyxe/75l9Glft bhxPbw+7WqmhdKbL41R6XXUh03XEQQ6DXYMLM/0Xbvni3ycNuSdUIDiB8ZJ74C4ZKV6s sHmVOCZyyMnH6o8dsCF6gfkXz4HjIazpAxCer34NbLwGFn11FmFoiGofMAqMyK22S5Ch 7Bfkb1YGx4OFC0yohbXo9K5Yx3TtaycF4vKX1P/d2dk6pdZZJhdhEguACC1yyK55/lmq 5Vsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=UACElRPk; 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 e15si7516318ejj.374.2020.05.12.07.12.34; Tue, 12 May 2020 07:12:57 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=UACElRPk; 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 S1730182AbgELOKx (ORCPT + 99 others); Tue, 12 May 2020 10:10:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729637AbgELOKx (ORCPT ); Tue, 12 May 2020 10:10:53 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23D03C061A0C for ; Tue, 12 May 2020 07:10:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=NO+sRIrtcWsU8pzSoEXB29WcYJfcotevuQ/7ctpOgOc=; b=UACElRPkuH49mAtmVFRanStviN Rd5L8NoVCXQcyxMBOcoHv8PcdmLteBLXj+l+DxhgNyyDF+l8P3mj10gF/AfZBvnyaF2HQ2o4+gyDX EGF3aQs9FQG3tC6jmnJbAbMDRACqURJhcLPOaVi8MREykLrnqAdGuc+J7IKdU3FWWw8RFH66AMV3x 8r1ZZS8gq5ohw/XQsffeqWu/hIf+zsuILWBlW49/WGErOW7Ncyd/ypOOprLL3oqffsikTS+SRgtmP OW+Fs54cOBSXrrz57HegSIWE9j/1OaanNoqAzV98nplM/RjXLmZ9d943MEiR1WqUq+KXN2XoLtDvw oBor4lSg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYVcQ-0006mx-7h; Tue, 12 May 2020 14:10:50 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 8D342305EEF; Tue, 12 May 2020 16:10:48 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 73EA320962E33; Tue, 12 May 2020 16:10:48 +0200 (CEST) Date: Tue, 12 May 2020 16:10:48 +0200 From: Peter Zijlstra To: Phil Auld Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, vincent.guittot@linaro.org, juri.lelli@redhat.com, zohooouoto@zoho.com.cn, dietmar.eggemann@arm.com Subject: Re: [PATCH v3] sched/fair: Fix enqueue_task_fair warning some more Message-ID: <20200512141048.GL2978@hirez.programming.kicks-ass.net> References: <20200506141821.GA9773@lorien.usersys.redhat.com> <20200512135222.GC2201@lorien.usersys.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200512135222.GC2201@lorien.usersys.redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 12, 2020 at 09:52:22AM -0400, Phil Auld wrote: > sched/fair: Fix enqueue_task_fair warning some more > > The recent patch, fe61468b2cb (sched/fair: Fix enqueue_task_fair warning) > did not fully resolve the issues with the rq->tmp_alone_branch != > &rq->leaf_cfs_rq_list warning in enqueue_task_fair. There is a case where > the first for_each_sched_entity loop exits due to on_rq, having incompletely > updated the list. In this case the second for_each_sched_entity loop can > further modify se. The later code to fix up the list management fails to do > what is needed because se does not point to the sched_entity which broke out > of the first loop. The list is not fixed up because the throttled parent was > already added back to the list by a task enqueue in a parallel child hierarchy. > > Address this by calling list_add_leaf_cfs_rq if there are throttled parents > while doing the second for_each_sched_entity loop. > > v3: clean up commit message and add fixes and review tags. Excellent, ignore what I just sent, I now have this one.