Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp101311iog; Sun, 12 Jun 2022 20:26:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwegYyJ2am6oHmZQn0SMrI3I9fqSwgZY6rAtaRnqrfvLV32ewH+E1qs54DDRJo4ZAjuWQKD X-Received: by 2002:a05:6402:1e92:b0:42d:dc34:e233 with SMTP id f18-20020a0564021e9200b0042ddc34e233mr63537807edf.386.1655090803111; Sun, 12 Jun 2022 20:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655090803; cv=none; d=google.com; s=arc-20160816; b=NrWMVoG8/R9B7w1CNR5rFP7hAoXGKRTk6ZNvh9jSdJexPe8jNV8cq0gj383EPNxOF6 21SqMseQFHjHdDZ1eR2+ISpCQfRZ0o6nhkGojYB54e9kimoN5YIUQc5C/z+3L64qlDQt BDyzB8GjeDqAANdcPORMmN/PI25o84NMClNsylDkvl9GcHy0FcLfom4M1Wgq3oYhmZ2L uYLpMWmuVBtoC+hr63sBj34hQ2f/kavtEoCcJE90Xmg2cD1nLmtBkV8bJNXNlP7fG4nj Ztt6UIVX9ed4ROHvw88Ke5ObdOrw2wRBZIjEEXWr/rqWui0kxd0+Lbc9LEZ56Ag/oRtG Tb5g== 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=I0JU6u7vHZ6SvfZIROd4EtKu4qFIwPLVf15Wl39hmo0=; b=MniFsTqJjkDM5XeFwGfFt7uWhaCeO58IAJl4g+Yj3+zMR6l14L92NFOvIWGCN0KNHf t5y5AfHUTytGi0VrVlM6K6CTNGwD4ROQV+zKRm8luMkHU33fOTQuvyddINy4cmxoNfQA 5MXyYNEWQl7MxPskGr6D75zdCmNmXx44iDGW+y/uxxL8WnB9H8Z9zeAa1gatus2hDSNC V/92Nw3Iswr2fqkZoPmXkVz/0Sjf4NfG/OgjnXwIIFQyKFNxZ1me6kKPA52YANa4XhJH WPEjblrUZ8c8jwFQonkLFHZJSRXnsDLjDCSnkEfbhXZf6VEyh8tyhq2M8z/2MYGX8dkg S+5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KxrgwSmT; 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 qw39-20020a1709066a2700b0071200c979b1si7247788ejc.644.2022.06.12.20.26.18; Sun, 12 Jun 2022 20:26:43 -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=KxrgwSmT; 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 S230267AbiFMDEY (ORCPT + 99 others); Sun, 12 Jun 2022 23:04:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233296AbiFMDEW (ORCPT ); Sun, 12 Jun 2022 23:04:22 -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 70D0C60CC for ; Sun, 12 Jun 2022 20:04:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655089460; 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=I0JU6u7vHZ6SvfZIROd4EtKu4qFIwPLVf15Wl39hmo0=; b=KxrgwSmT7WS8VFdgYJ7Ha85LK/oS78IwW0UULmJ8cGYzkKjmgqh88s6pe9RuLDXfgNCF/K r/mPWykCADsVIiSP+U2hqEp14FRuXwvPAWNbe698df1/Ocr24MUP+IfDryFiZqtj4jTHQy wNEMwIzw5crDoJ//w6OKUXQa3Nm5eb8= 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-63-arB-8VpdMqKwfkM8I74vdA-1; Sun, 12 Jun 2022 23:04:15 -0400 X-MC-Unique: arB-8VpdMqKwfkM8I74vdA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DDC5D85A582; Mon, 13 Jun 2022 03:04:14 +0000 (UTC) Received: from [10.22.16.100] (unknown [10.22.16.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3C04F1415103; Mon, 13 Jun 2022 03:04:14 +0000 (UTC) Message-ID: Date: Sun, 12 Jun 2022 23:04:14 -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.7 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=unavailable 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 22:55, Tejun Heo wrote: > On Sun, Jun 12, 2022 at 10:53:53PM -0400, Waiman Long wrote: >> 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 > Yeah, that part is fine. > >> afraid that if a task is somehow moved to such a cpuset, something bad may >> happen. So I add this check as a safeguard. > But how would that happen? A lot of other things would break too if that > were to happen. I will perform further check to see if this check is necessary. Thanks, Longman