Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp1215870rdb; Mon, 21 Aug 2023 00:12:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEtVGbHNmR/cL1RhAcyPj5YvONfX3OVEYmapI+SFQZBnnKYRYObkiAV/lP9gfp0WDJargye X-Received: by 2002:a17:907:775a:b0:994:536c:ab45 with SMTP id kx26-20020a170907775a00b00994536cab45mr4258217ejc.50.1692601955481; Mon, 21 Aug 2023 00:12:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692601955; cv=none; d=google.com; s=arc-20160816; b=XeZxuWg3SjyNt8DFr0x0xqFbWJqReJjpzGzmex78kkYVb7ht5wL8oq2moZcwVMH5Q5 2kl8hNWcFOtUrTwmOKoT6PpB8X2Nz1bv4H4tjtUIU4vFIfPRzvI0kRFGd/XIcGvr1c+D jaRyPsPPPBXAWawn+Z4b7zKsA4T2MNgkG3jcAd0lclUDyxWEqIeLwfE/htbMT2Zyd/IV IgI5F2ME6DC/WuI31jbiNdsl1J/KIAfnecfLJn2admIZ4ZrnEdBBlUv8cYwxH000ViOt J9e1FgErGA7urvQJgHqPT9YXJFOkUzhV5Yv5TerOB6Kg0/f9F5wouWA0OQUDxEJ0ma6f bxkg== 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=JkTfcaDXfpOBGXsuolGnbHD9MTrkQnAI1XgG1nQ3xfI=; fh=Nj35D9qgYTG9AVf+cuhv0gsvLoqC+UPW5gOA2wckwYk=; b=c1CSFPFA3U7/ce+BhFukEjK/yYWdJHteZWZcc086ncKsWzXLbWdKiC6poZTTsspBb1 3CKpUDY9LMD0YomDHiMsou7xPB4k1dpBi8K0L2An/FMoazymsOIhOk6iPMvVcnE84fTN g5gtXzsYca+MMfYZ1vzaBZEXqfvnBe77PL5vsUNnbQPJkEL2sfdz8iTY+OtTbdsRHuUJ rKgKYF8m9nQ6s+OAn7RU6Ro/I0zjszV1Zg4yJjy0usY7qpe9m2yfGjYtyvSfdvtn+uDw 69WjC3rdRugQmWbtDJWp3Nob0HiZeMKOWLK9TDOYyjzjhYJC9yzKPYeCmxRk68FOT3IQ gIpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m16-20020a1709061ed000b0099cf58066efsi5282242ejj.828.2023.08.21.00.12.01; Mon, 21 Aug 2023 00:12:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232301AbjHUBaU (ORCPT + 99 others); Sun, 20 Aug 2023 21:30:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230200AbjHUBaT (ORCPT ); Sun, 20 Aug 2023 21:30:19 -0400 Received: from Atcsqr.andestech.com (60-248-80-70.hinet-ip.hinet.net [60.248.80.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68B639C for ; Sun, 20 Aug 2023 18:30:16 -0700 (PDT) Received: from mail.andestech.com (ATCPCS16.andestech.com [10.0.1.222]) by Atcsqr.andestech.com with ESMTP id 37L1U5A4082532; Mon, 21 Aug 2023 09:30:05 +0800 (+08) (envelope-from ycliang@andestech.com) Received: from swlinux02 (10.0.15.183) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.498.0; Mon, 21 Aug 2023 09:30:02 +0800 Date: Mon, 21 Aug 2023 09:29:58 +0800 From: Leo Liang To: CC: , , , , , , , , , , , Subject: Re: [PATCH v2] sched/fair: Fix cfs_rq_is_decayed() on !SMP Message-ID: References: <20230818132148.2237811-1-chengming.zhou@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230818132148.2237811-1-chengming.zhou@linux.dev> User-Agent: Mutt/2.2.10 (e0e92c31) (2023-03-25) X-Originating-IP: [10.0.15.183] X-DNSRBL: X-SPAM-SOURCE-CHECK: pass X-MAIL: Atcsqr.andestech.com 37L1U5A4082532 X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,PDS_RDNS_DYNAMIC_FP, RCVD_IN_DNSWL_BLOCKED,RDNS_DYNAMIC,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chengming, On Fri, Aug 18, 2023 at 09:21:48PM +0800, chengming.zhou@linux.dev wrote: > From: Chengming Zhou > > We don't need to maintain per-queue leaf_cfs_rq_list on !SMP, since > it's used for cfs_rq load tracking & balance on SMP. > > But sched debug interface use it to print per-cfs_rq stats, which > maybe better to change to use walk_tg_tree_from() instead. > > This patch just fix the !SMP version cfs_rq_is_decayed(), so the > per-queue leaf_cfs_rq_list is also maintained correctly on !SMP, > to fix the warning in assert_list_leaf_cfs_rq(). > > Fixes: 0a00a354644e ("sched/fair: Delete useless condition in tg_unthrottle_up()") > Reported-by: Leo Liang > Signed-off-by: Chengming Zhou > --- > kernel/sched/fair.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks for the quick patch! Tested-by: Leo Yu-Chi Liang Best regards, Leo