Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2015049rdb; Tue, 3 Oct 2023 07:56:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGc75ZT7y0zROMCr4dYx9G0PajBO/ow8mIYHdGSaanTkULgGm5xTwDjjJMrLMYGORMFbdDW X-Received: by 2002:a05:6a00:189b:b0:690:cd6e:8d38 with SMTP id x27-20020a056a00189b00b00690cd6e8d38mr18590314pfh.25.1696345014912; Tue, 03 Oct 2023 07:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696345014; cv=none; d=google.com; s=arc-20160816; b=YXlA3/hBTJ1OfKoZS+lj3S62fAL7OnhwwSZ/2/lVwKfuEYRo3yEsaKlIuINbmBCGhp oP5HCOzT1iZ7tqSQfdNHhdVPdv23Y6TZFvdvxxM6WxkCNRNdFtZEocHhKBi9rM1VSCzM DHMLoWqSGDmuKpHRI1weraQ+7wYzMLS0OK354p6uuWlwRIZ2hKz0TpMkgDlwzls8AxM1 8l03TZnouBuYeff9Y9RPQiSS+qGD1uqCc9Qjkmu9IJRtmU7vF5JMpYVTgSxxss/lk+0E YpMo0kJ0Z+JxGYoJHBe4ISviskMAQABJnV0R5tuUZFGybhSHNVJ9xRBnyvx6vC4Zf2v4 sRxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=I7WcBrH/Di0VsPYhysDkPkrET7nqmGMH5mri0ZLFHJ8=; fh=zVrJjGCO1cMHCuI5MoLErX4MFpFJKpucFt2/t37nVjs=; b=XHQBEybJw2wPKfA/4jO2195T+7psmM0q6rSCDBGlEqujzZp6l2RmosLLxIIub/Y3Tg 1nFoYPtf6dLnKTqOx9l2jlnpR3EzSt4MITjUS2HLGJ52DNTqLv3HKmJVrz6r7rIa+d8S XqxKXNb2fDnDjZ7NT983h4yf5/I/fye3rE4m8+TA2xCK4zKG3bqp97MLai39xfKhAE2k 12WG0QAWgoy0j5zQi9+x6hUACXXt/oxWFwJaWTXAWHp653eg5Eh1KK/725E4c5fwjH/c FWyOTpxqJU/GF10LN5HIQo42Evr1zoTvT1q88kQKTLz7rdeod3BQmzprxi9MiA2AESdv WfXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=rsc0l7B6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id eg20-20020a056a00801400b00690d9cd7b62si1575616pfb.123.2023.10.03.07.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 07:56:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=rsc0l7B6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 1E60D8057E1E; Tue, 3 Oct 2023 07:56:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240261AbjJCO4c (ORCPT + 99 others); Tue, 3 Oct 2023 10:56:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240658AbjJCO4V (ORCPT ); Tue, 3 Oct 2023 10:56:21 -0400 Received: from out-192.mta0.migadu.com (out-192.mta0.migadu.com [IPv6:2001:41d0:1004:224b::c0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEB86CCA for ; Tue, 3 Oct 2023 07:56:02 -0700 (PDT) Message-ID: <93aa2ee6-3ee4-0129-7160-d3684ba67f56@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1696344960; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I7WcBrH/Di0VsPYhysDkPkrET7nqmGMH5mri0ZLFHJ8=; b=rsc0l7B6ZKcCYX6Q1nk32Mm/fkPjUNhx6SJGCNWmCBzlMdW3KUc1ZpDlSZv0JFbP5Zh1WW OPELUE9YbnZzpqXInOhF6QF2LtKn4Ts4UnJoFHoaQrlJd976ItdxJ9m6ES/ISet2mB2BwB +QLe1TasAOWgoAipn1fyTEmIkU6Eg08= Date: Tue, 3 Oct 2023 22:55:50 +0800 MIME-Version: 1.0 Subject: Re: [PATCH v4] sched/rt: move back to RT_GROUP_SCHED and rename it child Content-Language: en-US To: Ingo Molnar Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, linux-kernel@vger.kernel.org, kernel test robot References: <20230803050317.2240948-1-yajun.deng@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yajun Deng In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 03 Oct 2023 07:56:52 -0700 (PDT) On 2023/10/3 17:51, Ingo Molnar wrote: > * Yajun Deng wrote: > >> The member back in struct sched_rt_entity only related to RT_GROUP_SCHED, >> it should not place out of RT_GROUP_SCHED, move back to RT_GROUP_SCHED >> and rename it child. >> >> Init child when parent isn't NULL in init_tg_rt_entry(). >> >> Introduce for_each_sched_rt_entity_reverse() to iterate rt_se from >> top to down. >> >> Signed-off-by: Yajun Deng >> Reported-by: kernel test robot >> Closes: https://lore.kernel.org/oe-lkp/202308031034.4369b15b-oliver.sang@intel.com > Yeah, so I agree with these changes, but could you please split up this > patch into 3 separate patches: > > sched/rt: Move sched_rt_entity::back to under the CONFIG_RT_GROUP_SCHED block > sched/rt: Rename sched_rt_entity::back to sched_rt_entity::child > sched/rt: Introduce for_each_sched_rt_entity_reverse() & use it Okay, This patch makes sense, it saves a few bytes. But Peter seems to have a different opinion. @Peter, I think I split up this patch into 2 separate patches:          sched/rt: Introduce for_each_sched_rt_entity_back() & use it         sched/rt: Move sched_rt_entity::back to under the CONFIG_RT_GROUP_SCHED block Comments, please... > > Thanks, > > Ingo