From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74900C4320E for ; Wed, 11 Aug 2021 18:04:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 516386056B for ; Wed, 11 Aug 2021 18:04:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230026AbhHKSE7 (ORCPT ); Wed, 11 Aug 2021 14:04:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbhHKSE5 (ORCPT ); Wed, 11 Aug 2021 14:04:57 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E357AC061765; Wed, 11 Aug 2021 11:04:33 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id u21-20020a17090a8915b02901782c36f543so10891531pjn.4; Wed, 11 Aug 2021 11:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=OiO20UHglT1NPC5OUbJaD10lEfkdZcWqGJoPTWQxoOU=; b=jd8jqbBx9YTWzOvvdMy5jg2ItpkiGKByB0gZfqiqlaARW76DkXmvqaRoGwQ79Jjkvu 1KguaVTlcK8NDQFqc5bQ+gu3GX9ofT3kUKrMsMVwhJ+ZT2Ml8o/CYmARQXEvkIFiwMhZ k/eGDoEkLtJmBVFOdO+M+Wi9m3VG/BTPvWh075Xzsb25oGdsR2YBf3WdEL9FIKZ6l41H YSdcXTbTaW3yMF0OiUJTPG/n9zOadpO9ebDwe2HZfSnW8wHZO9E3eoS8wd3UsxmyXKMD +f8l7vo5ZilYaWchBBQxT1RfO/NcGKtSbwK5mgcfBidu4JMgafuRJ1Eo86nMU/lylfUu dzKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=OiO20UHglT1NPC5OUbJaD10lEfkdZcWqGJoPTWQxoOU=; b=NqDfyPSZpWK7iHlX5BgT+wL4+mAQqRQVmCf+BeujhnFHTnsQOv0OUbXWTi+WdHo3y6 li86V00FBzjAE22bKR4+Sd8KPBAkMQgnGGDQ/ZOzGsbpDPZBBIlV2LfdpUa0GB7WHHJL D/1MsgGnQGnb+XeTQupz+iKrfNPvAB5OJue6LT2ngjQIr1w/M/fTbAeR41ugkwoa8YfP fsmaPkByzu1I9UG1QMHpRUHygV0FayG+kBeEiGwCHsbHKZq3QxRXMYaU1DntlAfJzj16 m17cI0mk5IG3VgRg85/iIdkyJLvEakQYQplXVYkmitNxr0mx1/YO2c2AwaJNisVU2Abk LBSQ== X-Gm-Message-State: AOAM531BjM7yyNC2yWXbHaobFIwRxHPG2IJhjMZMXQigVUPzk30AKpoB LpeHi6nqdrMqzHNUilgccEo= X-Google-Smtp-Source: ABdhPJxNmdN6SPNK6ttpWpEps6y/muZWcUeT9JaqAcfxDLw/qA7GAxVt8LTKjYUKRs398wxE4PloYA== X-Received: by 2002:a17:90a:8809:: with SMTP id s9mr11711271pjn.44.1628705073315; Wed, 11 Aug 2021 11:04:33 -0700 (PDT) Received: from localhost (2603-800c-1a02-1bae-e24f-43ff-fee6-449f.res6.spectrum.com. [2603:800c:1a02:1bae:e24f:43ff:fee6:449f]) by smtp.gmail.com with ESMTPSA id j6sm170548pfn.107.2021.08.11.11.04.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Aug 2021 11:04:32 -0700 (PDT) Sender: Tejun Heo Date: Wed, 11 Aug 2021 08:04:31 -1000 From: Tejun Heo To: 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 , Frederic Weisbecker , Marcelo Tosatti , Michal =?iso-8859-1?Q?Koutn=FD?= Subject: Re: [PATCH v4 1/6] cgroup/cpuset: Enable event notification when partition state changes Message-ID: References: <20210811030607.13824-1-longman@redhat.com> <20210811030607.13824-2-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210811030607.13824-2-longman@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 10, 2021 at 11:06:02PM -0400, Waiman Long wrote: > A valid cpuset partition can become invalid if all its CPUs are offlined > or somehow removed. This can happen through external events without > "cpuset.cpus.partition" being touched at all. > > Users that rely on the property of a partition being present do not > currently have a simple way to get such an event notified other than > constant periodic polling which is both inefficient and cumbersome. > > To make life easier for those users, event notification is now enabled > for "cpuset.cpus.partition" whenever its state changes. > > Suggested-by: Tejun Heo > Signed-off-by: Waiman Long Applied to cgroup/for-5.15. Thanks. -- tejun From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH v4 1/6] cgroup/cpuset: Enable event notification when partition state changes Date: Wed, 11 Aug 2021 08:04:31 -1000 Message-ID: References: <20210811030607.13824-1-longman@redhat.com> <20210811030607.13824-2-longman@redhat.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=OiO20UHglT1NPC5OUbJaD10lEfkdZcWqGJoPTWQxoOU=; b=jd8jqbBx9YTWzOvvdMy5jg2ItpkiGKByB0gZfqiqlaARW76DkXmvqaRoGwQ79Jjkvu 1KguaVTlcK8NDQFqc5bQ+gu3GX9ofT3kUKrMsMVwhJ+ZT2Ml8o/CYmARQXEvkIFiwMhZ k/eGDoEkLtJmBVFOdO+M+Wi9m3VG/BTPvWh075Xzsb25oGdsR2YBf3WdEL9FIKZ6l41H YSdcXTbTaW3yMF0OiUJTPG/n9zOadpO9ebDwe2HZfSnW8wHZO9E3eoS8wd3UsxmyXKMD +f8l7vo5ZilYaWchBBQxT1RfO/NcGKtSbwK5mgcfBidu4JMgafuRJ1Eo86nMU/lylfUu dzKA== Sender: Tejun Heo Content-Disposition: inline In-Reply-To: <20210811030607.13824-2-longman-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Waiman Long Cc: Zefan Li , Johannes Weiner , Jonathan Corbet , Shuah Khan , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kselftest-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Andrew Morton , Roman Gushchin , Phil Auld , Peter Zijlstra , Juri Lelli , Frederic Weisbecker , Marcelo Tosatti , Michal =?iso-8859-1?Q?Koutn=FD?= On Tue, Aug 10, 2021 at 11:06:02PM -0400, Waiman Long wrote: > A valid cpuset partition can become invalid if all its CPUs are offlined > or somehow removed. This can happen through external events without > "cpuset.cpus.partition" being touched at all. > > Users that rely on the property of a partition being present do not > currently have a simple way to get such an event notified other than > constant periodic polling which is both inefficient and cumbersome. > > To make life easier for those users, event notification is now enabled > for "cpuset.cpus.partition" whenever its state changes. > > Suggested-by: Tejun Heo > Signed-off-by: Waiman Long Applied to cgroup/for-5.15. Thanks. -- tejun