Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5735032rwb; Tue, 1 Aug 2023 07:15:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlGie7qBoYve+lG+N8+9GkhEFUtk6Ml5hut/8YOXTZ3AL4Hub+DPwIULhsc626udr+pz/b4T X-Received: by 2002:a17:906:5dc1:b0:982:b920:daad with SMTP id p1-20020a1709065dc100b00982b920daadmr2312098ejv.71.1690899324856; Tue, 01 Aug 2023 07:15:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690899324; cv=none; d=google.com; s=arc-20160816; b=al1icyXXWn519G3RHz/RpPqWBtU+O2VVVz2GAkQoQFhKfE93vUvCIdlc5DwCchvTCK jlv8zJ11Cw9M1QKUz3oi8uvXSJMDZ+omtBmB0W6hAF9tfufSpACg7u3/MVfEre8Ylr4q 10M2qL/hWxvnum5dgi5DuXUq81iV6JieLDMmLuftbkwFl1ym4oXiwgIt+3moTl+tcocP USpcthP2bZDTG9Mbd2tMsI4DYU6jThXinQGbslS4ciV+gQt6vxgSGZtKE/oVjnlXTZSQ RhZxk19s44Paoc5uPNouiGzpquXkr8+f14dn0CiXIgALvgtOMFe9p5UncVRKKLY8i0lo 0NyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=8PQ3eXLE9QauqoMsb5kqcRyv2TtW9YrghUYSjK4KzyA=; fh=OMxxFdn5xPz5yjy3ZMfC5eNo17KizmU+vtQoaSHpS9E=; b=VibaUFePZKZvVGznR36kDnsV41MI5VS5+HQ33zyQGIVy3n3SLksVMiE8tnn9KYKeBQ Qnf6wSaXBFrslTrLr30nHbMMK5XRhNLEtj8SPR6DUq1BkgKAzuxq92PTPqMFuR5kS3l6 jpeClylz76DqYhvMvcAEPHL7njZCVCQB5dIan3Xu6AbEEzzs3jzZY/4Wee2KE5omcmcL RGYu2KgNbcqSEpMmBNH58uXckMywIUAEtLLQwoTnWtmYqoGDjnhItpYG8zz+Ky297+V7 n0hFqWBCQfjzVc/TSysXXi0pLOBvju5dJxNVZRkupPur2Lp9gZQCmnTuzWWXKEHgU4Ll HyJA== 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 k8-20020a1709063e0800b00992acf935aesi4419531eji.412.2023.08.01.07.14.58; Tue, 01 Aug 2023 07:15:24 -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 S231537AbjHAOAh (ORCPT + 99 others); Tue, 1 Aug 2023 10:00:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230305AbjHAOAg (ORCPT ); Tue, 1 Aug 2023 10:00:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91D75C3 for ; Tue, 1 Aug 2023 07:00:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 30733615BA for ; Tue, 1 Aug 2023 14:00:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D672C433C8; Tue, 1 Aug 2023 14:00:32 +0000 (UTC) Date: Tue, 1 Aug 2023 10:00:30 -0400 From: Steven Rostedt To: Yajun Deng Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched/rt: move back to RT_GROUP_SCHED and rename it child Message-ID: <20230801100030.5efec7e2@gandalf.local.home> In-Reply-To: <20230801062714.3424299-1-yajun.deng@linux.dev> References: <20230801062714.3424299-1-yajun.deng@linux.dev> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Tue, 1 Aug 2023 14:27:14 +0800 Yajun Deng wrote: > @@ -228,13 +228,10 @@ void init_tg_rt_entry(struct task_group *tg, struct rt_rq *rt_rq, > if (!rt_se) > return; > > - if (!parent) > - rt_se->rt_rq = &rq->rt; > - else > - rt_se->rt_rq = parent->my_q; > - > + rt_se->rt_rq = parent->my_q; So when this is called with parent = NULL, this will crash? -- Steve > rt_se->my_q = rt_rq; > rt_se->parent = parent; > + parent->child = rt_se; > INIT_LIST_HEAD(&rt_se->run_list); > } >