Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp783858iog; Mon, 13 Jun 2022 12:55:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0LHpUaX8jOk0sbLnCcWFT6mxHXrrr83+68r6xjNasaGWA07oM2GkC+uXEFYoKFYRGLNxI X-Received: by 2002:a05:6402:1c91:b0:42d:c9b6:506b with SMTP id cy17-20020a0564021c9100b0042dc9b6506bmr1638796edb.166.1655150106485; Mon, 13 Jun 2022 12:55:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655150106; cv=none; d=google.com; s=arc-20160816; b=hmI3X4J0x2Ti0TqIbS8ernhujmTyijzYVD6QEJ2Ux8QqEfx9QLy2gHG/ub5V9K9otT TGcWpSF74tZyNn2RJMRX4n0SVq5QCWlXhullvUdbeb3NMJnFfWOULtH1T4zYcHidFfAC 26zUcd7T/taaeC3AZ2MZaFNATYNOH3jxLULcQ/I2h9QyKows9jsogpNl+O5TIs11xHHI tSxROPrboVreCs+TMQjhJ3Ks35Of8QfgXsBihdNVIZuMSq6moFWQjs5LdQSIT6M3fcTt 0JrYPJijxN50Fq44fYN9q9IC7QjI5yFvYaWeaC9FRHnB3Ev46EGobAg5Q+eNf0j4dsWB GJ4A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=yv4/HdDYVjkX/YAztaZebjL1a0eQClbhVe6udK7q55Q=; b=TH9lxJT+t6XU7KXLg0PvaM+KrmzsNYiTeJ6TNOGM/GaM3Oau0qrNmLEPT7poXYx2wT FTuDM+90ssfhnUUhcLh3YbNxdKoZCZ5xnC0PnVO4deKi8XmQSRzfa0lcIKq990vTYr2O aLOM+7UyXyTLKemPYtEft5VIYxbMPo/0R25XHpYusHFtZSFnrjJ7Z1EGuo7FxuGkCraB sj0m9dAeyIiIEACipjZqyzjHukKplJceTF5JFoSnoC9nMgtjRVG+EyZ7qqqPVYnV92Sn 2HomaaZKiiER/JVapHOwHpw6M0PQ9VygEYIyUhbtJZL1Z4lx1y3JIFzNsqnPNwom/mIl psFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R4KQhc65; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb18-20020a1709076d9200b007064dc53a88si10073672ejc.619.2022.06.13.12.54.39; Mon, 13 Jun 2022 12:55:06 -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=@gmail.com header.s=20210112 header.b=R4KQhc65; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348225AbiFMTUL (ORCPT + 99 others); Mon, 13 Jun 2022 15:20:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233381AbiFMTQk (ORCPT ); Mon, 13 Jun 2022 15:16:40 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 200D3562DA; Mon, 13 Jun 2022 10:28:28 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id z17so6331284pff.7; Mon, 13 Jun 2022 10:28:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=yv4/HdDYVjkX/YAztaZebjL1a0eQClbhVe6udK7q55Q=; b=R4KQhc65mAGubUVJTJuWOM9bF5a4E4aR2gWSHzop0dE6laiurPYFF44248RO1CN/49 WGb5A/2tKnAUyTlNMto07nWaja1JSdE0p5FCaIOBCx0GpqRcN6UnwOfVVvtl9+g0krxZ UyaGiIURgykSXcIYLf9MJ59TgoMP3BburahgZgyuOCcoEL5Wno83fRLSagiwcmEG8Z7L t+D45/nsuHfvfQfooZUVeKI2gOrZlvXwlvj0TJmpMa5ttYI7M3o7z2+dC2wBOYu6NLWy f1G3g8SRqYk7jGR6uWZj9DZV2Cm8hnqHoeEfoRwikam2u3kgDwXnQ1m0xEMETKYD9EI3 X91Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=yv4/HdDYVjkX/YAztaZebjL1a0eQClbhVe6udK7q55Q=; b=0exH7V8dY+pqJNYT4OggtW+Hh23cXrgGahMb/JlYa3qRTSehwxjPMub0injxdm8cwY B/qffLeZ6pWLy8iBIWXUVvYW5Kp/cmrTmlgZuXyqykb5slIdWYgCz+mHqRAtRvGjc1hb iSw+L3PGkkAEgSgAmUgvm3a2Ps7uZ21+DZN9aFbjTViJx/AESHWwGFJvYDuFVPhpYE9e 0ZAd3jIhp8ppxPQx2yNPXP4ePTTonXRdvBqYTqse1p2Gnc6KCtQfvrtfw3lYLKilS2Iz 1CWcWSivFD3hsxvOPPK10PBC1Yc1jnTdBgmCCziSXC91ZpfHZR3UAVrj2JBaLzXnmvMf kYyw== X-Gm-Message-State: AOAM532V2dYmbTw9meKt93LIHTWvqHUw9tlO+1NtFg2JS63zQNjmtB3u XQQ+S2UN3OJLNJtZbY8UYDQ= X-Received: by 2002:a05:6a00:2392:b0:51b:fe0e:2b8 with SMTP id f18-20020a056a00239200b0051bfe0e02b8mr31643pfc.84.1655141307321; Mon, 13 Jun 2022 10:28:27 -0700 (PDT) Received: from localhost (2603-800c-1a02-1bae-a7fa-157f-969a-4cde.res6.spectrum.com. [2603:800c:1a02:1bae:a7fa:157f:969a:4cde]) by smtp.gmail.com with ESMTPSA id b27-20020a63931b000000b003fe22d73d52sm5752410pge.74.2022.06.13.10.28.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 10:28:26 -0700 (PDT) Sender: Tejun Heo Date: Mon, 13 Jun 2022 07:28:25 -1000 From: Tejun Heo To: Michal =?iso-8859-1?Q?Koutn=FD?= Cc: Waiman Long , Zefan Li , Johannes Weiner , Jonathan Corbet , Shuah Khan , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Andrew Morton , Roman Gushchin , Phil Auld , Peter Zijlstra , Juri Lelli , Frederic Weisbecker , Marcelo Tosatti Subject: Re: [PATCH v11 7/8] cgroup/cpuset: Update description of cpuset.cpus.partition in cgroup-v2.rst Message-ID: References: <20220510153413.400020-1-longman@redhat.com> <20220510153413.400020-8-longman@redhat.com> <404171dc-0da3-21f2-5003-9718f875e967@redhat.com> <20220613142452.GB6910@blackbody.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220613142452.GB6910@blackbody.suse.cz> X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hello, On Mon, Jun 13, 2022 at 04:24:52PM +0200, Michal Koutn? wrote: > On Sun, Jun 12, 2022 at 05:12:51PM -1000, Tejun Heo wrote: > > On Sun, Jun 12, 2022 at 11:02:38PM -0400, Waiman Long wrote: > > > That is the behavior enforced by setting the CPU_EXCLUSIVE bit in cgroup v1. > > > I haven't explicitly change it to make it different in cgroup v2. The major > > > reason is that I don't want change to one cpuset to affect a sibling > > > partition as it may make the code more complicate to validate if a partition > > > is valid. > > > > If at all possible, I'd really like to avoid situations where a parent can't > > withdraw resources due to something that a descendant does. > > My understanding of the discussed paragraph is that the changes are only > disallowed only among siblings on one level (due to exclusivity rule, > checked in validate_change()). A change in parent won't affect > (non)exclusivity of (valid) children so it's simply allowed. > > So the docs (and implementation by a quick look) is sensible. I see. Is this part even necessary? All the .cpus files of the siblings are owned by the parent who's responsible for configuring both the mode that the cgroup subtree is gonna be in and their cpumasks. Given that all the other errors it can make are notified through "invalid (REASON)" in the mode file, wouldn't it fit better to notify cpus configuration error the same way too? Thanks. -- tejun