Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1844947rdb; Tue, 3 Oct 2023 02:52:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHbJXBQmeqwIyHzyVgF8KksbR5Bn5kfG686j89IpshD0RQvoIy9Xwhi1byuGLkktt8jnyIY X-Received: by 2002:a17:902:e88b:b0:1c4:375c:110a with SMTP id w11-20020a170902e88b00b001c4375c110amr18564542plg.19.1696326728034; Tue, 03 Oct 2023 02:52:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696326728; cv=none; d=google.com; s=arc-20160816; b=pH7XzUBFI+/9mnK4SE5NYWctOK2CmxAsBj7nDIMz60hFi9ogWNZczSDr3+j71cwdD3 XSYGlEClyifChV7/phe/ritnQYMCHhNSwD3DuSNUN7QIT9/IL93zQ4hMIfEaNz1l/5vG F0gBmuO55llMMEKSkoLlb1LdsMb0ho1sEIWLZqSicshOzplwdrzJzEz1IIa4uzFj0Njl TP++2vw/acdCXX/PbMmAP1qcyJ1U5ATnKWIPJnSLglYN7pH2wmqy7/g4iBpWungPs2/3 lq537hI/WmNrue9YY/dba/6Fvqz8DVfMjzpMNL+x1GxE2lazXrRqGUzymhG3ATWNdI3h fWxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=ExSvwMAkpOvCS+jThDBzs2R/QjDRrK01zUKhilKpRF4=; fh=JHgspvYKEuBj8MTrJx/NIZF4X249BPd3plTGlL0PKDU=; b=fylGE5buUYBdBgnfIDtmH3Vct30E/VStlbXIyAYvMwrnFIBkH6TQlum9X4GdWd9g2k HUnxZLSDV7eH5BtVENvSgq33LgvbLJoNY7VeHRkw0Du6aswQinvsuB9rFbzh0Z+AlXw1 pWrCozvj+Ap8WAPpdkC99vxE4tm2aPw2P6bPcxkjNDAaJN1l0avMF0Bac9BinqgNK9cr uFvnP9uI5zKoLz8mBEZI0eJIP3847W17M6Kio4QcKL1jlsrLeae8f7lUtxJU7EYoqiOd lFqMXV5Qiy3W2sN901zmX3cWMWwtGfAOM0dE/wro2gh47mwGxk1y1tt5kim/yvJb/rkv e6Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XEw3HhNH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id q5-20020a17090311c500b001bc52116351si1162817plh.70.2023.10.03.02.52.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 02:52:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XEw3HhNH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C985F807BED4; Tue, 3 Oct 2023 02:52:04 -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 S231968AbjJCJv4 (ORCPT + 99 others); Tue, 3 Oct 2023 05:51:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239778AbjJCJvz (ORCPT ); Tue, 3 Oct 2023 05:51:55 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04C00B7 for ; Tue, 3 Oct 2023 02:51:52 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-9adca291f99so118338466b.2 for ; Tue, 03 Oct 2023 02:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696326710; x=1696931510; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=ExSvwMAkpOvCS+jThDBzs2R/QjDRrK01zUKhilKpRF4=; b=XEw3HhNHigbD3keIjjMPS8opmu7n2BeZ3N4q9+FIi5qrcSrwmORbn519xBAbrvRmnE 9CAfj7bbkcPZijB+j+BJMwATaBcqnHUiD2V8cd+YE4XB3sa8buOp9O6mSz1LiGNLCcc5 EKXG8VFX0LVFT+vFjMIHRrUuQwb/SJHngI8oP4ZNsncWXjSyrd4XRXIw14Chw1C560GM QLuk1+E2zcYpCioII0/xt+AvUI/lJM7cw5C9iy4+OB5ba5es3BdxsnIA314NNGmbBzaI djqrev9UL5px+dnqUl9Xq8cf7ZFMi8Wmm9lm/GcQ4F3N19THtdSxnoOuMH9Z6yqxuMdA iDeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696326710; x=1696931510; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ExSvwMAkpOvCS+jThDBzs2R/QjDRrK01zUKhilKpRF4=; b=ExWaGpGDS56avDjvCJeivki0SdzYYapbk4qZL0881+V3yKtb7uPJflvxASEO955TMI FNnDLjtKR8F4cFrxu3k/JUAcxpnoJJLXNE9s6jGFs14S3C5nPM+vz6shjxnDWkkFpGP2 GugJYFaYgwnkuOYH1OfY67qOr0K3XkqPTcUJyC3kaCK4mwBZghrEjNYUIl82A1wEkOpS nygsCmfUpI7ZKeB4wp0Ec83Jb90/8yq7HFFdy+uBANhPyKTFAWuWyS7TxzIuSsH+VRZz 0SSVokUbzy/vIbx55GvBOONtLIDmGQhsHNmdAdOTA/kVuSeecjWn+ZiiM3db+iMtpTOU TMkQ== X-Gm-Message-State: AOJu0YyQXm+1oeb+Q5uBRgF/svxqB2QM84gitTIjmRSpW55h71Zdt0NO qW20Yl9+oJnzNEhZ3wtJX/0= X-Received: by 2002:a17:907:7787:b0:9b6:aac1:6fa5 with SMTP id ky7-20020a170907778700b009b6aac16fa5mr783641ejc.55.1696326710375; Tue, 03 Oct 2023 02:51:50 -0700 (PDT) Received: from gmail.com (1F2EF530.nat.pool.telekom.hu. [31.46.245.48]) by smtp.gmail.com with ESMTPSA id rn4-20020a170906d92400b009934b1eb577sm784393ejb.77.2023.10.03.02.51.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 02:51:49 -0700 (PDT) Sender: Ingo Molnar Date: Tue, 3 Oct 2023 11:51:47 +0200 From: Ingo Molnar To: Yajun Deng 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 Subject: Re: [PATCH v4] sched/rt: move back to RT_GROUP_SCHED and rename it child Message-ID: References: <20230803050317.2240948-1-yajun.deng@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230803050317.2240948-1-yajun.deng@linux.dev> X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 02:52:04 -0700 (PDT) * 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 Thanks, Ingo