Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp100169iog; Sun, 12 Jun 2022 20:24:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyL/8WXU/RGyv4LqctTEf9ETZsSHZbwjaquQ3WB1UjC3IBZYgZZ6CngZ+0RSElfCwSPGeeu X-Received: by 2002:aa7:d481:0:b0:42d:d5fd:f963 with SMTP id b1-20020aa7d481000000b0042dd5fdf963mr63410172edr.209.1655090650971; Sun, 12 Jun 2022 20:24:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655090650; cv=none; d=google.com; s=arc-20160816; b=IYf/fbxkQJEocYDSeT8rSDktrxjnsNYN/rlOqAD5mhCymwhg52zntyKWWVxVqfxMVu g/z7xZZzBWrjsFqytoRwikYkEu0b4B7d2Aeg+4OAN3f9ZmShnD2b389ErXtXNq/XeErF GATkVCHdgM9hnAlBDCEtPB8MY16WObjuFSo1JZoTTRtTn4udYGnh/g0zmdRKXE+LGfo5 PjSsPQC5NNsYB6PLUkEI8o59X1vV2QCajiFmhXl6QSaqUfxciGibMubqg5S2ten+n3Z4 pYxxc4e7OABQcbjHcQvQdmyVhig4kUZj1U9RiX//s5GRTGFl9z16vE4ZH36hZTZjIKS7 0oJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=awNyHYB+B6d++/GUSUOZEZMC4V4Il/2xgLKKTfctnKo=; b=aqBm87C+TRHaGs4p1O+ELxh4OQi9FkMRFHDB1pM7LmIMco2/gS67NLWYHcIW5VmMxp 9ew9oYbEg/EQwlo0j+RzPsYNOOsDiTABeUCDfv+YX5HkdYglLTlIyEWvVa3YGGGs/SKE 2aDD8Bcnmu7n8kbQk8LcGpIQxUnPbhLnRQjtjlB5zcr77GuNxLw38gjtvVM5+M5eqJid v/K2I34wShdeRgKeRCRtphlsPh8q1cyM4ka+FfkedkAqMQb6/beqbZSjp5eHduh+b20z 6Ey6Os7mprbRvjUpm4oDoLItFy3aGc/YdqM3jL+bITqKrFNqWMULr8b3itmjLooEboFe CeIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YXutdmp3; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn1-20020a17090794c100b007122a9d20bdsi7354382ejc.237.2022.06.12.20.23.46; Sun, 12 Jun 2022 20:24:10 -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=@redhat.com header.s=mimecast20190719 header.b=YXutdmp3; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238223AbiFMCx7 (ORCPT + 99 others); Sun, 12 Jun 2022 22:53:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235700AbiFMCx6 (ORCPT ); Sun, 12 Jun 2022 22:53:58 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A1B1C35872 for ; Sun, 12 Jun 2022 19:53:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655088836; 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=awNyHYB+B6d++/GUSUOZEZMC4V4Il/2xgLKKTfctnKo=; b=YXutdmp3VsWJmqQG7NIetHnTqzAXVxUtsCqEKlIsPTXg5D9waxHITTn5KiJGTY0FBL7fOO C13N8Ba7OT2090emTJSIgqIVGoZ1UpjuCsc5KrlObXOQMoqvOgZugOtzuQ0lgdZ1BmF9IN 4Xb9XkGNjMUoiKN7DQVY1DJoHmEFFKQ= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-31--GkFDRtPOaCAeJe8ZsfFcA-1; Sun, 12 Jun 2022 22:53:54 -0400 X-MC-Unique: -GkFDRtPOaCAeJe8ZsfFcA-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D2EF482407B; Mon, 13 Jun 2022 02:53:53 +0000 (UTC) Received: from [10.22.16.100] (unknown [10.22.16.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3B5FC492C3B; Mon, 13 Jun 2022 02:53:53 +0000 (UTC) Message-ID: Date: Sun, 12 Jun 2022 22:53:53 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v11 3/8] cgroup/cpuset: Allow no-task partition to have empty cpuset.cpus.effective Content-Language: en-US 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: <20220510153413.400020-1-longman@redhat.com> <20220510153413.400020-4-longman@redhat.com> From: Waiman Long In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 6/12/22 13:41, Tejun Heo wrote: > On Sun, Jun 12, 2022 at 07:40:25AM -1000, Tejun Heo wrote: >> Hello, >> >> Sorry about the long delay. >> >> On Tue, May 10, 2022 at 11:34:08AM -0400, Waiman Long wrote: >>> Once a partition with empty "cpuset.cpus.effective" is formed, no >>> new task can be moved into it until "cpuset.cpus.effective" becomes >>> non-empty. >> This is always true due to no-tasks-in-intermediate-cgroups requirement, >> right? > or rather, I should have asked, why does this need an explicit check? Without this patch, cpus.effective will never be empty. It just falls back to its parent if it becomes empty. Now with an empty cpus.effective, I am afraid that if a task is somehow moved to such a cpuset, something bad may happen. So I add this check as a safeguard. Cheers, Longman