Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4704315pxv; Tue, 27 Jul 2021 14:16:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHT+VUnugDljQRuVPgFZYoeZy6h7LMEQHil0UYZp73G/EatILH+5fml/eFFpPy9W6Q8L4G X-Received: by 2002:a05:6402:4d1:: with SMTP id n17mr29214395edw.337.1627420587368; Tue, 27 Jul 2021 14:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627420587; cv=none; d=google.com; s=arc-20160816; b=LyrMGDBcfAx+m/5TzSl0538LkQJDtzkO5cN+H+YEyBJOWzdyejPjTCgkclGJRkgVAV L1BHjt1bfx8KdN+yDfGKEozA4w91NBVXHrSz8lFXicczMjf2wJEvuTwa+bQ/znAmo18V CuHITh5pYqD5B2v/1GDIClC4/txKYpoRsORlq2AD+v5z9u3pm8C3leMSR9P5ehU0l079 nd9SeEiTv9cpcSXAcqPg8VUMmzFnp2jaJtZhLZWce9Ys3AVCWM0pvAPxeBNHuLcCZ3pI rLpyUJ8xpwjr4FUHbHQ35iV2CUq5Cx6JxNeqcW6eN1D81hYTLwiwOLgh03uio7RXYw6g DZJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:subject:from:dkim-signature; bh=HTTYyPAE0g/if8d0gvKRc9AYw/duV58RDsVIEQdGHsg=; b=MEHmhVq2jr8SH+Wvtbn6KlQMN8e7LZ2nQ/9Hnt7DLxU8VPoInGbUuqWMYN3xTHEeRK nuE1L2WvqRh4ePnONav1abdSl++yXnbi72IUBMGXDYBAWkMJAFlczufGL0nIDW3HNKxC lHLxdaj70sIkB1fW3lEGolaUgpz/4ibsEol/+SgUfalXMpTS3qgPQj9YlZubUI7HOH59 YQePiPAJkPbjebhc09bDORWMazq7RGMYrdVAEDa/6UlL2TLSIEXH7ITQb09PfYdhi3Zh uDmnwS6BQPsRuHxgJy4d9x27aAsxKnhHIhru99PZLjB8/0GKqWmGay7txPpNCe3z33fY tYdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KPlOEjLk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si4061442eds.322.2021.07.27.14.16.03; Tue, 27 Jul 2021 14:16:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KPlOEjLk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232670AbhG0VOe (ORCPT + 99 others); Tue, 27 Jul 2021 17:14:34 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:47397 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232596AbhG0VOe (ORCPT ); Tue, 27 Jul 2021 17:14:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627420473; 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=HTTYyPAE0g/if8d0gvKRc9AYw/duV58RDsVIEQdGHsg=; b=KPlOEjLkZCu9R8GQDltUqtMqrSvIjfncGoiSmyM0UrTR/VoHPZDuW7rvOHbG0KCPoik4ir 2xCzyCD3o99+4Ke0LB2/qYUE08rSBT5AcrmnAH5XSWewmlaxu4gDjgXYuCQeFT9couvHQ6 kUmpuCmCf6gIcUbpMEZspMyU8pvUOiM= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-403-aVQPc03pPeScy81fMBhgXQ-1; Tue, 27 Jul 2021 17:14:31 -0400 X-MC-Unique: aVQPc03pPeScy81fMBhgXQ-1 Received: by mail-qv1-f72.google.com with SMTP id hf7-20020a0562140e87b02902dc988b8675so539378qvb.3 for ; Tue, 27 Jul 2021 14:14:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=HTTYyPAE0g/if8d0gvKRc9AYw/duV58RDsVIEQdGHsg=; b=E4sE3YifoYHec/3qTZAEc5rrJFe8ab+sx7vSV9Xv0xjpxmgpDhviSSdzh/BSEai5FX Jg2w+L4DUgCo8O9Pi6a3ZhQbtN9d+DTN6ZTERK/2mq3TssB5WwFjQNUj0kHe8Zm2zO3G K7ljDNuEfE7TUfTA7ycJSYsKAqqdr41KDAofYuOG8/d5g21YId59hZCiAedC3RIdV7XS gaWdfrtzXw1Zjq+fpz2A7yc5CnlBKwCavxh1Np7g1GraYPVmqDz3TFAiEMaaOnFXgE3E lxX84zIGysV5x0cv2iMNknmbhCLJDEwdPdu8Mh+GuwWG704Jvm7oTJOX8Apa3iC1axhn +LKg== X-Gm-Message-State: AOAM530SFKIkO2noqU7FPwbMVXQqIYbCG/at/wUo5vU82kkxJkrrQ4Ja ch6NjjAu0lvT41BqjA9KdETm9x/nwYhoaPW3TP5fXY972vpOOpMdUDcQTFjohZqJJLzeAhCEpK7 PNgalpkqOhj259lP3nzv2PptI X-Received: by 2002:ae9:f30e:: with SMTP id p14mr4710200qkg.412.1627420469420; Tue, 27 Jul 2021 14:14:29 -0700 (PDT) X-Received: by 2002:ae9:f30e:: with SMTP id p14mr4710180qkg.412.1627420469234; Tue, 27 Jul 2021 14:14:29 -0700 (PDT) Received: from llong.remote.csb ([2601:191:8500:76c0::cdbc]) by smtp.gmail.com with ESMTPSA id p22sm1908465qtq.64.2021.07.27.14.14.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Jul 2021 14:14:28 -0700 (PDT) From: Waiman Long X-Google-Original-From: Waiman Long Subject: Re: [PATCH v3 0/9] cgroup/cpuset: Add new cpuset partition type & empty effecitve cpus To: Tejun Heo Cc: 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 , =?UTF-8?Q?Michal_Koutn=c3=bd?= References: <20210720141834.10624-1-longman@redhat.com> Message-ID: Date: Tue, 27 Jul 2021 17:14:27 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/26/21 7:17 PM, Tejun Heo wrote: > Hello, > > On Tue, Jul 20, 2021 at 10:18:25AM -0400, Waiman Long wrote: >> v3: >> - Add two new patches (patches 2 & 3) to fix bugs found during the >> testing process. >> - Add a new patch to enable inotify event notification when partition >> become invalid. >> - Add a test to test event notification when partition become invalid. > I applied parts of the series. I think there was a bit of miscommunication. > I meant that we should use the invalid state as the only way to indicate > errors as long as the error state is something which can be reached through > hot unplug or other uncontrollable changes, and require users to monitor the > state transitions for confirmation and error handling. Yes, that is the point of adding the event notification patch. In the current code, direct write to cpuset.cpus.partition are strictly controlled and invalid transitions are rejected. However, changes to cpuset.cpus that do not break the cpu exclusivity rule or cpu hot plug may cause a partition to changed to invalid. What is currently done in this patchset is to add extra guards to reject those cpuset.cpus change that cause the partition to become invalid since changes that break cpu exclusivity rule will be rejected anyway. I can leave out those extra guards and allow those invalid cpuset.cpus change to go forward and change the partition to invalid instead if this is what you want. However, if we have a complicated partition setup with multiple child partitions. Invalid cpuset.cpus change in a parent partition will cause all the child partitions to become invalid too. That is the scenario that I don't want to happen inadvertently. Alternatively, we can restrict those invalid changes if a child partition exist and let it pass through and make it invalid if it is a standalone partition. Please let me know which approach do you want me to take. Cheers, Longman