Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1652684pxv; Fri, 16 Jul 2021 14:30:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyihKmJqeHDv+0QDRvesujd1d+LHvcHST4Ia5PtN+uZNNwq6LkaV91zLmPkXeu2ToKCqiu3 X-Received: by 2002:a92:8e45:: with SMTP id k5mr8225891ilh.116.1626471052780; Fri, 16 Jul 2021 14:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626471052; cv=none; d=google.com; s=arc-20160816; b=ih1+pPLMA3tbf7xQ2XgqY97wUE/T89vfs95aybRNr3kBV53ALHZRJa5mCO7yOxfQ3y QxY/3ZSaQtLWDGSc4tCGNZtL78wha6YsxglEELfPopycdGiP1+3VMLPaJyfzOI4bptLC +jV0cwm8bFE+n+CYlvqM6kz33WpJOcJ606oHhTo6kWmQpgkrjQYgC3kLNpJKT5r0TwF1 7wAgWj6Mcm3V9PKEDdMgesoqwH74SBdSY5McegcXdVTGpap1jtbOobeieMrw6u32gWaK 4KhQ2eIMsPNbYnfDgwyw9iINLT79i4n7Kok7B0zW/fXiEydIkO/U7j73zvDswgG06KUL vzGw== 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=YABHDSw9b5sWUS8tb4/mSbwzJgD3Ug0F6zV+ryBO8W8=; b=UPwtoERgsGB3kGoxKpxZyM2vtaTRZZ8jqTM3Mp2GV+3Ow0r+BbkKxO1WtS9d+AojuE SmFAaShPombw0jWM23iSqE+laI2fbjW59oC9pNkLz8mfEhMW+gIjC4XmmKlGCEzHai9n Q6GVuR3brORxNUIJxo3/NWLhxxD98c7q0po9KDEPIFfajPhnKUi1da9AfLt5A/825xQK Z/5m4b/Vx2ks9px5rivsYa2KEN8Yd6mNITeDY/ZFsX6GmLvx8rwZDsw+UqR5WOt+r40h 827c6enbr2D9TMuX7q/wWuZ+W20g94lO1fxRg5xit1tROieHQdoFPtXM08CZhcSgw5FK pJ8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aRZr4Wzq; 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 i9si12217223ioq.17.2021.07.16.14.30.40; Fri, 16 Jul 2021 14:30:52 -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=aRZr4Wzq; 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 S235765AbhGPVb6 (ORCPT + 99 others); Fri, 16 Jul 2021 17:31:58 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:54453 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235208AbhGPVb5 (ORCPT ); Fri, 16 Jul 2021 17:31:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626470942; 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=YABHDSw9b5sWUS8tb4/mSbwzJgD3Ug0F6zV+ryBO8W8=; b=aRZr4WzqthHBGhZOykWgSaKdGrcUXbkDtWJciTiH0bjIxrT/1mUazWs3C8FFf3KWfx0gNs FXwXSusJqO9kvWpEdasZZFVdeBNhWxXbkvZzPla0P/FyL+JrNgfq2en3eokoTaKdf0LY4Y Mv8LphHvvLbHs6bj76TFFBlCU4Je5qQ= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-43-SrD3uSzoOYaWWMvFPJ9lcQ-1; Fri, 16 Jul 2021 17:29:00 -0400 X-MC-Unique: SrD3uSzoOYaWWMvFPJ9lcQ-1 Received: by mail-qt1-f198.google.com with SMTP id a12-20020ac8108c0000b029023c90fba3dcso7133077qtj.7 for ; Fri, 16 Jul 2021 14:29:00 -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=YABHDSw9b5sWUS8tb4/mSbwzJgD3Ug0F6zV+ryBO8W8=; b=libgxPZ8DVmStqzRRYcOK3plzUQGHT09ioJlQofdSvuiMD7kjrPpQFKpiRDK/kpl93 ZxggxOU2JKkR0pfgIGyeqJnxeK8E6hW4+9qZVWYE4AqU44jo/+SGH0C9Nym4iEmaV7Mt uaFmYqT+IR9t9+b6R9ZcUr9qMNRej87ITX0wR+EQv+kA05e7ckaquBLL5Krk3eUibQLw uZFTtWXfNYXnrHhwryy9rxQTazcRqwnjWwm7JBSDpZyfnAgPTsMM4LFsql2EiWZF3Ogx ced1r+/38BsOK/UgQq/SDaxu2IUiug4E3Y4DgrcY3CWJWP0p5UqVq8JyFFEB3VtJkIrO 7yxw== X-Gm-Message-State: AOAM533cntcW+CknyGYmYRhOeK93n9jm6++4Hcy8A3w5sbbHsNoqfPzc fugRiRrJE02yAbFEM9SKlfTFNoJQCX1m8+DH/8Ztpos1FP+u2MqaS52UfV+DIq8susBhQCP1u/0 cmDc1cEzEH/sJoOLfRIbU3VDc X-Received: by 2002:ac8:6ec1:: with SMTP id f1mr11059659qtv.294.1626470940409; Fri, 16 Jul 2021 14:29:00 -0700 (PDT) X-Received: by 2002:ac8:6ec1:: with SMTP id f1mr11059637qtv.294.1626470940260; Fri, 16 Jul 2021 14:29:00 -0700 (PDT) Received: from llong.remote.csb ([2601:191:8500:76c0::cdbc]) by smtp.gmail.com with ESMTPSA id p3sm3716072qti.31.2021.07.16.14.28.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Jul 2021 14:28:59 -0700 (PDT) From: Waiman Long X-Google-Original-From: Waiman Long Subject: Re: [PATCH v2 2/6] cgroup/cpuset: Clarify the use of invalid partition root To: Tejun Heo , Waiman Long 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 References: <20210621184924.27493-1-longman@redhat.com> <20210621184924.27493-3-longman@redhat.com> <6ea1ac38-73e1-3f78-a5d2-a4c23bcd8dd1@redhat.com> <1bb119a1-d94a-6707-beac-e3ae5c03fae5@redhat.com> <8c44b659-3fe4-b14f-fac1-cbd5b23010c3@redhat.com> Message-ID: <4a804edc-17ec-d8fa-d8c1-273252ba0ee4@redhat.com> Date: Fri, 16 Jul 2021 17:28:58 -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/16/21 5:18 PM, Tejun Heo wrote: > Hello, > > On Fri, Jul 16, 2021 at 05:12:17PM -0400, Waiman Long wrote: >> Are you suggesting that we add a cpuset.cpus.events file that allows >> processes to be notified if an event (e.g. hotplug) that changes a partition >> root to invalid partition happens or when explicit change to a partition >> root fails? Will that be enough to satisfy your requirement? > Yeah, something like that or make the current state file generate events on > state transitions. Sure. I will change the patch to make cpuset.cpus.partition generates event when its state change. Thanks for the suggestion. It definitely makes it better. Cheers, Longman