Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2801392rdb; Wed, 4 Oct 2023 11:49:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE1hBn67qJrhzrpoqDgyoqcYZC3feKFtzJaCglVgJ+/UsxJGKISu2SW1RObYbMNZCPrsXYr X-Received: by 2002:a05:6a00:24d5:b0:68c:6a77:4845 with SMTP id d21-20020a056a0024d500b0068c6a774845mr3803071pfv.12.1696445383403; Wed, 04 Oct 2023 11:49:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696445383; cv=none; d=google.com; s=arc-20160816; b=N8kStXk1y6TnakDQY73vMHkg3VlxrUkzDUCvFthqoj4qUqXpsXmeSSLkPgPxRErhmh 61MeyvpYL+bQZf/ILZaBl65JID4owJL12Hty/1P/vu/2WA+oSAk9amYTv5Tn6am/QOUx kS91Tx6IrDkmdf3DDwnXp+iS0lrXrom6Mvsr+D2TGTVHyevK1GK/e4S8If/VZoOmhlH3 NUREYHtMRnxDkH34d/Im08gAEicnSfOtEty5AsFamZ7A1cHntKLytIlR4VjIcbtW4AhX uEAG76d8C0OwcCQDRiAfRklxwbOwj3uOb3b1OiN8eTF22Y4dDPwclfVVot/iM0OCn/IK ROAQ== 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=BAz3Xi9WInvSjrocrUhcW4J3f0UHIpnVDLlDbVgSoaE=; fh=yUQYC02aGHTQ/dUkpgqhe+znNuD0ROXQEFssZVcAO2o=; b=03tvhSZ69ENZ2n6Ss4omIDdCCIzgmzseiv6Elnc7I0geIyMT5XxXVXSDwQ9GBadS0K tyw3HbIH7IwLK2G+RNhw1GQU0C7jzI7V5LjXMhx1hEKh0AVxDjXxY2hoxVHF1FY4RmRV CTY5TstTP3/iKCblMl5W7NxNGoE8ONGvzAKuCAidMlG2mjEWjliX6pRcjY6MxKyaHeeH Uijb1cm+qcB97P3BuU0tZX5oTMn+4vBoMwEWIU2lLpDTA4hpcPqFRMNKsmZwGnKBa1vv yHIE2OF6hOPjUCAnesbAskAQ7Jt6NKlZ2W5dx3Tx+kA6fMZup+6Faf9tyDwooHS42EOB 4nKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fs+fv2Hp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id d11-20020a056a00198b00b0068fe8cac913si4309753pfl.324.2023.10.04.11.49.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 11:49:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fs+fv2Hp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 214E68097A7F; Wed, 4 Oct 2023 11:49:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243734AbjJDSt2 (ORCPT + 99 others); Wed, 4 Oct 2023 14:49:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233842AbjJDSt1 (ORCPT ); Wed, 4 Oct 2023 14:49:27 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02BBBAB; Wed, 4 Oct 2023 11:49:24 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-27736c2a731so67839a91.3; Wed, 04 Oct 2023 11:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696445363; x=1697050163; 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=BAz3Xi9WInvSjrocrUhcW4J3f0UHIpnVDLlDbVgSoaE=; b=fs+fv2Hpbh68V+s9jFlzSklT1CNZp6Nfa9jiMofybqYOXsH8Jl25yBmckg+33mPZb3 P/DaW1/2C3u4XO7TJjsrq7kNbXwZoVWxSS23As8jERpd0oYLaobSNA3Zs+Id8/Fpg1zG JcalaIyX2TTHZCtz0DAY76wdPZfGzMwGKtFVUccsdhBla+LiUyCl4D4QRgJMgQJquOHT d7veqFcneodAcwrEkiCIaInYiZl4jvODAKl8iUsCaSdX1/fTTc4zPBfoT64P4zhw7bNC B+rRy8z2KNNs+y5rpvkHqH0Y62QshQSbKARb9LNaqmkTIE2pS8eNbZcDcQn/y0L45pyN RSwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696445363; x=1697050163; 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=BAz3Xi9WInvSjrocrUhcW4J3f0UHIpnVDLlDbVgSoaE=; b=LoY4O8Dm4z8Ux9fqXey36AUTo9ToRIaTM7DD0FEo1Xn4ES7sYVwoZTWOgdE+LrtSda 5nWFTERZ/8UQd7zKQymY6pGezopX2sztOt6KeJNq+MtG+TvAsWleZBWzOJeA8Bqrp2fX 08Eot0/mqngJxX5+LQbrt4RPSJwTHv7IxcmndZMDJFPg5ehqSe/SJd51w9+rrdnPNB++ DHL0EncoC6BruT7ULjdnV/y1mQpERnXPqecb48Qa4d0ijmoWcu4kQvOP4zE0xybjfFFN 6ifI8fsnD5USqcNaVZp35PwXnQqs9hSfwhhqUz0daCFM3eSB68m86L9BHgrzLmV8b1d8 LVgQ== X-Gm-Message-State: AOJu0YwtqAuSHwFvDYak6EWYNSzZ/2zeQUfJd8WVEPnQx3agZ6dR4Cij ClIvZHOcYkABe9PVhtAgqFk= X-Received: by 2002:a17:90b:3e87:b0:274:755b:63b8 with SMTP id rj7-20020a17090b3e8700b00274755b63b8mr3145433pjb.43.1696445363240; Wed, 04 Oct 2023 11:49:23 -0700 (PDT) Received: from localhost ([2620:10d:c090:400::4:cef]) by smtp.gmail.com with ESMTPSA id l18-20020a17090a409200b002635db431a0sm1893644pjg.45.2023.10.04.11.49.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 11:49:22 -0700 (PDT) Sender: Tejun Heo Date: Wed, 4 Oct 2023 08:49:21 -1000 From: Tejun Heo To: Luiz Capitulino Cc: lizefan.x@bytedance.com, hannes@cmpxchg.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, longman@redhat.com, kamalesh.babulal@oracle.com, mkoutny@suse.com Subject: Re: [RESEND v3] cgroup: add cgroup_favordynmods= command-line option Message-ID: References: <20230927142539.GB65411@dev-dsk-luizcap-1d-37beaf15.us-east-1.amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230927142539.GB65411@dev-dsk-luizcap-1d-37beaf15.us-east-1.amazon.com> 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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 04 Oct 2023 11:49:41 -0700 (PDT) X-Spam-Level: ** On Wed, Sep 27, 2023 at 02:25:40PM +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. > > This commit addresses this by introducing the cgroup_favordynmods= > 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=y. > > Also, note that when cgroup_favordynmods=true favordynmods is never > disabled in cgroup_destroy_root(). > > Signed-off-by: Luiz Capitulino Applied to cgroup/for-6.7. Thanks. -- tejun