Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1826667rdb; Mon, 9 Oct 2023 04:28:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvjZ5aDtQ8fc05QVoujpqwCUsu9Y4NFkVlL/PVNGeWYe+YnO6rDgGZTlNCFpfMOuT6LUr9 X-Received: by 2002:aca:100d:0:b0:3ab:929e:c5e1 with SMTP id 13-20020aca100d000000b003ab929ec5e1mr14964573oiq.39.1696850904591; Mon, 09 Oct 2023 04:28:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696850904; cv=none; d=google.com; s=arc-20160816; b=FZ+XkabfjYeF4XnIVzzvB43rV9OMHi+XEzbzm3bLFb5D1scT5MmIy3jHtwNe+mzcXN 2pZZqWOUZ5pQ3rn38UBWjr9rpDXJxZtEqSU31IaPJmodZ4SyVRurFTucO/ENKuvNudlA JgPZCg1Jd+qdQDqA8KBxp5oaN55TC0dIdR8g+8pRzfLYcuIO32yS0v80TNPjELyS27F8 /g6mqfx2vRJ43upUbA3Gt/g42vLKTkdrLh355NFqXGQH5KDd+uXEHqWhxn6bIvrPxOLq ZI5WaBRFNptwGjEpaNy5l5PPDg9v8Te1u4Nws++615KcNLDg+Pdjr1/mT3SBPf6hKGlw UMFA== 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=Qgsa4jFUUu75o7T4bTgZwNIym2nMH8ZI7QeLhKa9YdM=; fh=4uVjrVZDsFBdXw1UW3AAmaEiQZk8fR56/X7nVlCB+ls=; b=w0ruXN19gEjr5URL7xbsFKEdnP/gySx6TwbaxgKacBt0z9Nie0Ufz9L/mOdcnCaanu yNh8TkDmTWxLb8nOMX4YhKHwjKP6vl6j/FrA0VUpvWXmFKgwBArwXcVr4GGPAyeGSdR3 klWjFKDpQBBRXE3RRn39+kqeuv/qYrQ8E0lrJ25mAi4yK3Gjae1xvaNJI5e3LmliAcIo WnsQOPeFXdL3yJs6kLynCMH8P+oIX8HfqSd/vh/DFYS0nHUgZM1v8V6/3OV5gs1IoO07 z5rj4jWX3rAw9eRUYQ5LdwHgjfxtgo7eaqQJQC448qwQJec+W7VPsyimxMKJWI0IKxde pwhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Tt2vKXrk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id e21-20020a656795000000b0057808a9b0besi6713217pgr.664.2023.10.09.04.28.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 04:28:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Tt2vKXrk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 256E3807BA3A; Mon, 9 Oct 2023 04:28:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346396AbjJIL1w (ORCPT + 99 others); Mon, 9 Oct 2023 07:27:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346375AbjJIL1f (ORCPT ); Mon, 9 Oct 2023 07:27:35 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8CCB2694 for ; Mon, 9 Oct 2023 04:26:43 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40535597f01so41458885e9.3 for ; Mon, 09 Oct 2023 04:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696850801; x=1697455601; 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=Qgsa4jFUUu75o7T4bTgZwNIym2nMH8ZI7QeLhKa9YdM=; b=Tt2vKXrk049eusdwik3EBxnGFPtuW2lJ6+SvULp0wACQMNWD9JiZBBa+/wZVvnllsw flQByhs8cwBo7hTDCry/ZZQLwNumwbbL1Gx2/bT2UXEUxU9Ih4XBNR1wUayOBInUIXE3 IZtCh7QDZVs2k5RJ3zmxPnyQDlTun/Zc353v3rT6CpSq3f+JqZNCStr3VTT4Tqvfs0It M/kSr3EZM4OIZYT+nG+p4i12fIUhUVz2pfwB24oZAtgfkRw1TjttfV0OJykbnjiDgqwR nOpCXsi2EpE2NTBIAKao1+Qe90F0kU1z9lAU2Fyy1tplzGmo6EoN7hXVZbHuIAD4ms+W Pubg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696850801; x=1697455601; 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=Qgsa4jFUUu75o7T4bTgZwNIym2nMH8ZI7QeLhKa9YdM=; b=IVK6AvUJ26V+O61MLUeKteFsPVg2yM/P6usSyU1489Bgeih2l+uCAwgtN/eR7uK/j9 AadNKDHcfLuhTsEuOtqbgITWVs5MwY3FwdISx7KpTR2mWZsf2hYodZBkF430K23JvtH9 JmrgB3AVkC83p0/qTVX67jg/g9to5Pc53RbkDKIg4DjrxgD0BQum32gadyDBRYS0HW6G QCBwOt4GbGmn2lxEE2ECBDTAy82T3PPj9Mqfj7jWY+UcIbsx0u8ivUT9stEk+ilGdg+S QBhS/KnJ5klzVxZGpboBiNXjl3AbrOpvQnlO5CuTg4yX+gvJoCMLziBmaAnlSjYMPtuP Qpmg== X-Gm-Message-State: AOJu0YzwZW9Ed+UGYq4eKVu3dlcVno717u4MYeCed5Q2zxWAJdX7GVRm xjBSfyBqvwOhGD7+FbNE19g= X-Received: by 2002:a1c:7212:0:b0:401:bdd7:499d with SMTP id n18-20020a1c7212000000b00401bdd7499dmr13839684wmc.25.1696850800548; Mon, 09 Oct 2023 04:26:40 -0700 (PDT) Received: from gmail.com (1F2EF237.nat.pool.telekom.hu. [31.46.242.55]) by smtp.gmail.com with ESMTPSA id k14-20020a05600c0b4e00b003fe1fe56202sm10964095wmr.33.2023.10.09.04.26.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 04:26:39 -0700 (PDT) Sender: Ingo Molnar Date: Mon, 9 Oct 2023 13:26:38 +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 Subject: Re: [PATCH 2/2] sched/rt: Move sched_rt_entity::back to under the CONFIG_RT_GROUP_SCHED block Message-ID: References: <20231005162317.3343678-1-yajun.deng@linux.dev> <20231005162317.3343678-3-yajun.deng@linux.dev> <5a3342ef-f14f-173c-630f-6b474bded257@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5a3342ef-f14f-173c-630f-6b474bded257@linux.dev> X-Spam-Status: No, score=2.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 09 Oct 2023 04:28:22 -0700 (PDT) X-Spam-Level: ** * Yajun Deng wrote: > > On 2023/10/9 18:16, Ingo Molnar wrote: > > * Yajun Deng wrote: > > > > > The member back in struct sched_rt_entity only related to RT_GROUP_SCHED, > > > So move sched_rt_entity::back to under the CONFIG_RT_GROUP_SCHED block. It > > > will save a few bytes. > > > > > > Also, init child when parent isn't NULL in init_tg_rt_entry(). > > > > > > Signed-off-by: Yajun Deng > > > --- > > > include/linux/sched.h | 2 +- > > > kernel/sched/rt.c | 18 +++++++++--------- > > > 2 files changed, 10 insertions(+), 10 deletions(-) > > > > > > diff --git a/include/linux/sched.h b/include/linux/sched.h > > > index 292c31697248..d0fe56603e60 100644 > > > --- a/include/linux/sched.h > > > +++ b/include/linux/sched.h > > > @@ -597,8 +597,8 @@ struct sched_rt_entity { > > > unsigned short on_rq; > > > unsigned short on_list; > > > - struct sched_rt_entity *back; > > > #ifdef CONFIG_RT_GROUP_SCHED > > > + struct sched_rt_entity *back; > > > struct sched_rt_entity *parent; > > > /* rq on which this entity is (to be) queued: */ > > > struct rt_rq *rt_rq; > > Title claims this change - the rest of the changes should be in a separate > > patch: > > > Okay. I will send v2. It's ~v7 already by my count, isn't it? Thanks, Ingo