Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1177695rwr; Wed, 3 May 2023 11:07:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4+iE+aZn/EYnVlwj4VNoYIqkuzppzwuSPtPW5FHjmBF2SIRUeFg6xSWZdkdZcE6vOLbBzm X-Received: by 2002:a17:90a:ea92:b0:24d:fee5:6e3e with SMTP id h18-20020a17090aea9200b0024dfee56e3emr10408798pjz.25.1683137270299; Wed, 03 May 2023 11:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683137270; cv=none; d=google.com; s=arc-20160816; b=IlrEC/iB2spZukZjr7N9mOtZCcVQ0/oujoFzwXdrmxNrFiSoTinF9dpxczWty/bafq 9OGQOYeQ4HWfvBxk5Irtx3CG3SpC0eK3+FTgY4YkhhJ8iFIwlN/+3e5W6rQAojE1BeSe d/EGvRHkvZ2fRvvIw3YdDR4gyCI6DGQULRTahJFefa0GD/Hc7jnpCYKW0SKpCa8xTCUk rW38jYUNOiIXkByihABLSy0CY66fg+WUYJzUwG/DvucQgiBRLz0Tjbdj/dq4ZcJye6qF cRSPku9NoiihT+b8GKiERY7FeK7KdggDtDPCuJ+jC8Sgw303+wo2wPOdvYv61WWDW3BV h0UQ== 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:user-agent:mime-version :date:message-id:dkim-signature; bh=cKPUL7FZWA4e+itJ2WAtXLunhkYaY3Bk3M9ZOMdUVpQ=; b=0kjm09bU+dG/hExKq+cUm3pzkiIvZDNybRujNqtnHZpV6Tg1yZE8MDgTq3IrUa/C8u ZTw7XH3zYBaumu9ugHR/eYVyLU1rjhr6GgysBzWWfvLsL4T5BdTjDusdf281T5nNgiHI BdjVbOTbLAD0SU8sfjUfW72UmKxCrwXF9vuZ2Csx9FbIez5NVAmBtzq4XZlXz+pfH4Ub PQG3AuI9ZmFnqPRhHzH197rp9XXO8o+At7YvQU3eLOtUmnbUeu6lbKEGizypnP8YvNeV YXstNF9vd370/DQrO4QtIxWfuKkSxvawXmOrBXSMY9mbLa5J2ZPCxsrU1kAsMiwVWAu5 13+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hbM85wjG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y23-20020a17090a105700b00246bdd45f1csi13926482pjd.33.2023.05.03.11.07.35; Wed, 03 May 2023 11:07:50 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hbM85wjG; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229582AbjECRz1 (ORCPT + 99 others); Wed, 3 May 2023 13:55:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbjECRzZ (ORCPT ); Wed, 3 May 2023 13:55:25 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88CB010FF for ; Wed, 3 May 2023 10:54:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683136476; 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=cKPUL7FZWA4e+itJ2WAtXLunhkYaY3Bk3M9ZOMdUVpQ=; b=hbM85wjG5OqYg/6yF//dDtyBCiqICqD/YvlKsnu2vkIU53VC4mr/94yTYdIqe8adof3ILw JnLfoPEMHfzb8S9I9q9Vlb3+wXIK5eaq+RWYMDqaZPUAFO2BsdOQ2MSYRjqPvMkmr5FyLQ GpHV8Cmq0jxDbEmuSUBTIGwsh7eBmCE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-385-JW0PGHQoOkygat9G0REsvg-1; Wed, 03 May 2023 13:54:32 -0400 X-MC-Unique: JW0PGHQoOkygat9G0REsvg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E7798886462; Wed, 3 May 2023 17:54:27 +0000 (UTC) Received: from [10.22.17.228] (unknown [10.22.17.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id E1D64C15BAD; Wed, 3 May 2023 17:54:26 +0000 (UTC) Message-ID: Date: Wed, 3 May 2023 13:54:26 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v2 1/6] cgroup/cpuset: Rename functions dealing with DEADLINE accounting Content-Language: en-US To: Juri Lelli , Peter Zijlstra , Ingo Molnar , Qais Yousef , Tejun Heo , Zefan Li , Johannes Weiner , Hao Luo Cc: Dietmar Eggemann , Steven Rostedt , linux-kernel@vger.kernel.org, luca.abeni@santannapisa.it, claudio@evidence.eu.com, tommaso.cucinotta@santannapisa.it, bristot@redhat.com, mathieu.poirier@linaro.org, cgroups@vger.kernel.org, Vincent Guittot , Wei Wang , Rick Yiu , Quentin Perret , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Sudeep Holla References: <20230503072228.115707-1-juri.lelli@redhat.com> <20230503072228.115707-2-juri.lelli@redhat.com> From: Waiman Long In-Reply-To: <20230503072228.115707-2-juri.lelli@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Spam-Status: No, score=-6.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 5/3/23 03:22, Juri Lelli wrote: > rebuild_root_domains() and update_tasks_root_domain() have neutral > names, but actually deal with DEADLINE bandwidth accounting. > > Rename them to use 'dl_' prefix so that intent is more clear. > > No functional change. > > Suggested-by: Qais Yousef > Signed-off-by: Juri Lelli > --- > kernel/cgroup/cpuset.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c > index e4ca2dd2b764..428ab46291e2 100644 > --- a/kernel/cgroup/cpuset.c > +++ b/kernel/cgroup/cpuset.c > @@ -1066,7 +1066,7 @@ static int generate_sched_domains(cpumask_var_t **domains, > return ndoms; > } > > -static void update_tasks_root_domain(struct cpuset *cs) > +static void dl_update_tasks_root_domain(struct cpuset *cs) > { > struct css_task_iter it; > struct task_struct *task; > @@ -1079,7 +1079,7 @@ static void update_tasks_root_domain(struct cpuset *cs) > css_task_iter_end(&it); > } > > -static void rebuild_root_domains(void) > +static void dl_rebuild_rd_accounting(void) > { > struct cpuset *cs = NULL; > struct cgroup_subsys_state *pos_css; > @@ -1107,7 +1107,7 @@ static void rebuild_root_domains(void) > > rcu_read_unlock(); > > - update_tasks_root_domain(cs); > + dl_update_tasks_root_domain(cs); > > rcu_read_lock(); > css_put(&cs->css); > @@ -1121,7 +1121,7 @@ partition_and_rebuild_sched_domains(int ndoms_new, cpumask_var_t doms_new[], > { > mutex_lock(&sched_domains_mutex); > partition_sched_domains_locked(ndoms_new, doms_new, dattr_new); > - rebuild_root_domains(); > + dl_rebuild_rd_accounting(); > mutex_unlock(&sched_domains_mutex); > } > Reviewed-by: Waiman Long