Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp524187imn; Thu, 28 Jul 2022 07:54:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uSfRnSkIGTZ4tnGd1B3I74WUlGOE1HMeh1EuJilTOb/Rv8Ue08lFpS0O3OQsXMLgY329a0 X-Received: by 2002:a65:6b93:0:b0:41b:823d:416f with SMTP id d19-20020a656b93000000b0041b823d416fmr321938pgw.262.1659020068118; Thu, 28 Jul 2022 07:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659020068; cv=none; d=google.com; s=arc-20160816; b=pk+CThUNXV8N6VeH1wqqEHrSeqgvQJa5S9C3OgQGqwYjSoBsGcypg27wxk3Ul+Urqc lZf+YxSvbGveKJHlnv1QL3dnoO8XWlRX2ITzZM1mg6tjQ4hMpj/l5HPQIKLwJ7NM303A sSuAqIVd62dbyN+SUcZNuIeUqfc0ghhL7E6L++q0Tuh/BvCtSumLEv/g0HddcNI0brRU 2hUt9YuvzHO1Cuh3LVKpj72WP0ufzHKUvFX7naDGVAH64W82yBxDJE81csJXx+RCVBVH ebz70RVrJS+eEpghc3W8L1VHLpDUXBIz1hWTl4nEdPfTpKD8KpPprBVREIqblKh+ApIC DJmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gpW4YToHW6w1TJ+JUui+ok8xn0F55KMcQkwdz3YZ6hI=; b=B9/aL3CpRc9TGjMXGjMA2O7PKDLJLVS5wMJmNNAhtUNrLGnjsA+t/0bHQhUUdzMHRJ ICGZq+iIHm9TsKZ7lR7uMUdPzv9dwmGG/wQrj3vT14XNbPtu00huIJio2jW16ym1PyDD qji2p2w8BJfeXTKNhQsEHEN0Ln5AI2ocGZxni96HoDhFVCYBCKKSzHeNpPvICXejejUZ pPU8fMiR4ifj4JUFuzX3bTrWKB3LqDuvNVM1/bSRaxgo/H+LWVc0g529CIUtuwoDLCoK aJ5qF5kfuaF0ProPXzeE2d3zO8wAPurgh83nhRI0hsR8XB5/XS5hYF8b+ZTl8GRcOMWr Ynxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="gr1imVX/"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jd2-20020a170903260200b0016d43e38858si1104365plb.605.2022.07.28.07.54.11; Thu, 28 Jul 2022 07:54:28 -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=@suse.com header.s=susede1 header.b="gr1imVX/"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232513AbiG1Ood (ORCPT + 99 others); Thu, 28 Jul 2022 10:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230188AbiG1Oob (ORCPT ); Thu, 28 Jul 2022 10:44:31 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7ED5A6262; Thu, 28 Jul 2022 07:44:29 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 2E4B534A17; Thu, 28 Jul 2022 14:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1659019468; h=from:from:reply-to: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=gpW4YToHW6w1TJ+JUui+ok8xn0F55KMcQkwdz3YZ6hI=; b=gr1imVX/+jT5GEcGtWZ8FbJVs2S+5goVZ3h54Klc/9rJIqVQc5zm9Io0oEppBZkpPdh/6p vBJUd2+893USnplUtxLe9m9SBOZYRw9hFoC11WwAfTE1LB4fL5sASnD2XsvlwN9GgP2Z6A 0x0hKwuBnycqcXIaHuIFbuizv3oUn/I= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C936C13A7E; Thu, 28 Jul 2022 14:44:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id g4QoMMug4mILZwAAMHmgww (envelope-from ); Thu, 28 Jul 2022 14:44:27 +0000 Date: Thu, 28 Jul 2022 16:44:26 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Waiman Long Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Tejun Heo , Zefan Li , Johannes Weiner , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] cgroup: Skip subtree root in cgroup_update_dfl_csses() Message-ID: <20220728144426.GA26631@blackbody.suse.cz> References: <20220728005815.1715522-1-longman@redhat.com> <20220728005815.1715522-2-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220728005815.1715522-2-longman@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 Wed, Jul 27, 2022 at 08:58:15PM -0400, Waiman Long wrote: > The cgroup_update_dfl_csses() function updates css associations when a > cgroup's subtree_control file is modified. Any changes made to a cgroup's > subtree_control file, however, will only affect its descendants but not > the cgroup itself. I find this correct. > So there is no point in migrating csses associated with that cgroup. > We can skip them instead. Alone it's not such a big win but it componds with the recent Tejun's threadgroup_rwsem elision. > --- > kernel/cgroup/cgroup.c | 9 +++++++++ > 1 file changed, 9 insertions(+) Feel free to have Reviewed-by: Michal Koutn?