Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2958675imm; Mon, 28 May 2018 20:58:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpzkkLStxKhBXxbsI1PGACb0UKgV6uU9c1MpaSRzEhbcWmfK0RKa5bSSLJYKoV0xsivg4VJ X-Received: by 2002:a17:902:6903:: with SMTP id j3-v6mr16079328plk.313.1527566292374; Mon, 28 May 2018 20:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527566292; cv=none; d=google.com; s=arc-20160816; b=b22v/N4/ri3HBM93eYzXegDQPYl+57osBRfgij4PeAXjNpvqhgZWNw1zNmouN7ygCv Q0CHeFaJffl+hbqeMlaj2xOfos1ZpWmBMc3ziZTNoTcVyJqA9CqUr3v0XE/hBqyeqV9z tmXh/eP17+DcI9Y9Rm/o/Mp1N7gmoB1C4GDkCensDNumg4Ese9s2BpInKqtZKfcqPExa AC3J+/YwLX8zissdp6rWitO120NClh4NO37LfWVLJ8M1MV6IaQO11CacCoARg0L8GAdj H4+7X6DtaWrgF5Y0KdxgqCjPTDbGpNlJ+uAmhjJopLIsq/r6CM083Qr7MbAo63C24LfO I9rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=GO3hTqX0IT1S+PJjRskpZ6zo7v4orkJFY9R3reLK7TU=; b=V3AaDsfWpNTolR2Y+sygjAX4LqGvtvqyY05o37u/Y3fdv534vXldfyVkktPAY0FZOj PUiHcIc+WA/VP8bGZj/OWRQgzoiIiVIN7yBQqmsxczyx9Ckl5crmYeVq8QmzHUcjS/zf o5CwltDL5QeTDHHcrEgzzSl5WWwo0EV3OoZCnQjCSLxmHpTHl06AxB4S6kkoOdZEO4po 8R7c6tr3mY4vx0Vg94//EJBWjCtYBRseH5dIRwIUU5wSTusjnGRfRj+/vQOpMo7XO+nU oMEttH0Dcq5usZNeRX+8Eqnvvc5IJFyBfslnxfJdZu8ROIP8RHbTByYvLy9UIsKIhV1Q cEdw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s86-v6si31794861pfd.288.2018.05.28.20.57.57; Mon, 28 May 2018 20:58:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935363AbeE2BNB (ORCPT + 99 others); Mon, 28 May 2018 21:13:01 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:34588 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935196AbeE2BM6 (ORCPT ); Mon, 28 May 2018 21:12:58 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EEF807D839; Tue, 29 May 2018 01:12:57 +0000 (UTC) Received: from llong.remote.csb (ovpn-121-110.rdu2.redhat.com [10.10.121.110]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4AD671116701; Tue, 29 May 2018 01:12:54 +0000 (UTC) Subject: Re: [PATCH v8 4/6] cpuset: Make generate_sched_domains() recognize isolated_cpus To: Juri Lelli Cc: Tejun Heo , Li Zefan , Johannes Weiner , Peter Zijlstra , Ingo Molnar , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kernel-team@fb.com, pjt@google.com, luto@amacapital.net, Mike Galbraith , torvalds@linux-foundation.org, Roman Gushchin References: <1526590545-3350-1-git-send-email-longman@redhat.com> <1526590545-3350-5-git-send-email-longman@redhat.com> <20180524102837.GA3948@localhost.localdomain> From: Waiman Long Organization: Red Hat Message-ID: <45d70c88-e9f5-716a-ee9a-33dc111159cc@redhat.com> Date: Mon, 28 May 2018 21:12:55 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <20180524102837.GA3948@localhost.localdomain> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Tue, 29 May 2018 01:12:58 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Tue, 29 May 2018 01:12:58 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'longman@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/24/2018 06:28 AM, Juri Lelli wrote: > On 17/05/18 16:55, Waiman Long wrote: > > [...] > >> @@ -849,7 +860,12 @@ static void rebuild_sched_domains_locked(void) >> * passing doms with offlined cpu to partition_sched_domains(). >> * Anyways, hotplug work item will rebuild sched domains. >> */ >> - if (!cpumask_equal(top_cpuset.effective_cpus, cpu_active_mask)) >> + if (!top_cpuset.isolation_count && >> + !cpumask_equal(top_cpuset.effective_cpus, cpu_active_mask)) >> + goto out; >> + >> + if (top_cpuset.isolation_count && >> + !cpumask_subset(top_cpuset.effective_cpus, cpu_active_mask)) >> goto out; > Do we cover the case in which hotplug removed one of the isolated cpus > from cpu_active_mask? Yes, you are right. That is the remnant of my original patch that allows only one isolated_cpus at root. Thanks for spotting that. Cheers, Longman