Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3401773rdh; Thu, 28 Sep 2023 10:28:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGotGNcKiIzuH8wYqVYmy24XsYdZ07BX40ocRkqHDWY8gkjKayHCBKrd7ngevotsnfx65gu X-Received: by 2002:a17:903:1c1:b0:1c4:638:fff4 with SMTP id e1-20020a17090301c100b001c40638fff4mr1650143plh.17.1695922126912; Thu, 28 Sep 2023 10:28:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695922126; cv=none; d=google.com; s=arc-20160816; b=c+WeJbc/vfLBvAAAPDxsM7v+oTX1cdFieEDayCf4+qLXnB6oKWyoO+keQ+z4pcZ/3K Y7Ck5u+QTj1T2MPgRP8RRO1jWyQQEMOsQpVwXecDBAKCZlUxJyZ4Se5mL/qQzBeSFZVU q59fTqu8iG5eGdYXT4/nTWTdnF9TGCJUp5+7A+jZNl/5pVubB0vTr8xIgUld1Rlmr80v bnCY60Q4ajnDnXq655mLaTVj44HIe5gmTcxZEWYHEUvFsLcm3luPPS9/DAXoQuYAFVf/ KQikKicD1tw+RMDtNh+ebyWXzuTFAlyezed/wGmWFwqWbR+PTGmXzHI684Cff8u6BMgr B/jA== 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:dkim-signature; bh=bG0Pnzalm348LFro+ihVWQatuPRDGf85MA2c4irdNsI=; fh=7w/LgqVmxyvb2BgxfSatvyIZh/g2BhkAHTVK/jckm9U=; b=P4rPd/6nas824EqNu2p0DFVDlH9Y0Ez+oFblyJnryOIXjsWSniTThyZx6ZaYHEp2Bn TQwbaDaKLgImJUc0/VmsS/SV9uwcodswdsbxH3qZvWip4LrYoItqh06JtajSOB3fbz4Y IMuF4/7KVBUfe+TyBC9LCUopII7lN03hBqmJ8wKZpu2mQCEn69GZB+dcFQL9H5YmlpDN WHBrO3d5CC7AcXMvnDILisnKwz0EpjiPW+Gi/HGe6ruLNKyEbvFS4VFWmUW8AE616Eo9 zRw8bCWLnArx3c0Zeb2OcXgnHq3FN4iFovCV2+ktVNrgKwfO584CdTBiwyQPBV95CHx7 oSkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=OtmhifT4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id kt14-20020a170903088e00b001bdb92d7b19si17726609plb.101.2023.09.28.10.28.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 10:28:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=OtmhifT4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 6711480F9BDD; Wed, 27 Sep 2023 02:27:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230402AbjI0J1q (ORCPT + 99 others); Wed, 27 Sep 2023 05:27:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230459AbjI0J1n (ORCPT ); Wed, 27 Sep 2023 05:27:43 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21F72FC; Wed, 27 Sep 2023 02:27:41 -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-out2.suse.de (Postfix) with ESMTPS id AF0A91F8D5; Wed, 27 Sep 2023 09:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1695806860; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=bG0Pnzalm348LFro+ihVWQatuPRDGf85MA2c4irdNsI=; b=OtmhifT4gJuFMQRN8jjvl3M7OE01MBb0hmeyqMbNXyWDdszTxiaIgRpU8IqnB2RfpNbmXv Qmf0rUghVdxc7YIzOBsgXiwXXTf/Bp78e13U2td3W2H8KgP0M5qHDZriRr7XMYjQfaJbjF 9TFsQ2CcH3V9C2NcjlGJ3R3gS2VEr/8= 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 893FB1338F; Wed, 27 Sep 2023 09:27:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 7/vAIIz1E2V/DgAAMHmgww (envelope-from ); Wed, 27 Sep 2023 09:27:40 +0000 Date: Wed, 27 Sep 2023 11:27:39 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Luiz Capitulino Cc: tj@kernel.org, lizefan.x@bytedance.com, hannes@cmpxchg.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, longman@redhat.com, kamalesh.babulal@oracle.com, lcapitulino@gmail.com Subject: Re: [PATH v3] cgroup: add cgroup_favordynmods= command-line option Message-ID: References: <20230926211617.42746-1-luizcap@amazon.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mvxntxtnmhzpfusm" Content-Disposition: inline In-Reply-To: <20230926211617.42746-1-luizcap@amazon.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 27 Sep 2023 02:27:52 -0700 (PDT) --mvxntxtnmhzpfusm Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 26, 2023 at 09:16:17PM +0000, Luiz Capitulino wrote: > We have a need of using favordynmods with cgroup v1, which doesn't support > changing mount flags during remount. Enabling CONFIG_CGROUP_FAVOR_DYNMODS= at > build-time is not an option because we want to be able to selectively > enable it for certain systems. >=20 > This commit addresses this by introducing the cgroup_favordynmods=3D > command-line option. This option works for both cgroup v1 and v2 and also > allows for disabling favorynmods when the kernel built with > CONFIG_CGROUP_FAVOR_DYNMODS=3Dy. >=20 > Also, note that when cgroup_favordynmods=3Dtrue favordynmods is never > disabled in cgroup_destroy_root(). >=20 > Signed-off-by: Luiz Capitulino > --- > .../admin-guide/kernel-parameters.txt | 4 ++++ > kernel/cgroup/cgroup.c | 18 ++++++++++++++---- > 2 files changed, 18 insertions(+), 4 deletions(-) Thanks, Reviewed-by: Michal Koutn=FD --mvxntxtnmhzpfusm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQpEWyjXuwGT2dDBqAGvrMr/1gcjgUCZRP1iQAKCRAGvrMr/1gc jsr1AP4tFlDP1JxCkCQQQanb8dPX0P90i82rcOq6fKAF7PKMHQEAp3/0+E0VebU3 IxXBMCjqJvEx7hEhL5bygjmy8HOdsAM= =e3lV -----END PGP SIGNATURE----- --mvxntxtnmhzpfusm--