Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1951063imm; Thu, 24 May 2018 03:29:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoRCQZZBhEpPQq5smSo8PdWiYFsOlAol/ob3JCR+VVcN+sVZLBXelIr3wVloMbXTMWqQRok X-Received: by 2002:a62:6402:: with SMTP id y2-v6mr6517269pfb.71.1527157784755; Thu, 24 May 2018 03:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527157784; cv=none; d=google.com; s=arc-20160816; b=Gzsx9EZqOKPTrx6wg5JQVN//vBkD+WfkMuyoRihXdYVrhmuCfI1XMOhcRMs7hnPe2P b1dWnWqst/ZgQsJ4+4MA4SkQvjxQ4mldkm/bFQoF/B+gJzbCz1niDiPeyA8GkuEtzhpz PoI3QsERJJNGZHW+QMEPN3uZ8bZ9G8RKku5YktQKBcfoSHbqQqsqK9BKHAGKZZpUpdWa ZOhgD0y1bv7qRYusklpiiFvemYA9zbFgex1wsbDKViFdcB3mFJika4cbnQcWgrI1NGxp 3xf/RUpNBaYUmH719831rynMe7Ld/EN3dHsHvhSkECTaCTNBGeS0/mS/kDfsT87z48Of x7Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=rbHeWcjZ0RP4euHIjW6n/saLL/sz1+W1MAdGO3CG4Ns=; b=OkJ+L2y1T6fUtihi/QlItkMz6kLro8x2ZukCKu7tZNU1uL4h8XdxfFJ3A4QXvzB31i 4UcDj1c0aGxVyTcAJLDKcFxDHGwPozCqydK8/M6gxpWSpHRxgouAS8P9q/2oZtQDjtgM kgllSQVQs/cbsBRt4Hr4DTUczAqMQAUYgxWiWqDtoSJ3qZFNZ8uM7DCUtYWTB1vhprCf OViudHUt3MMRRNJl1a3PSRdvEKBOIiSm8seSHwZedakYYHDocJRAcKyUBu8Fv5oIhNPA 3xqYh9zmgeQLFTPlcbcF6Idni1ppdPLzT9eIObJ5e2dFOboO7GkaFcEqoU1WyGnW84SK xUaQ== 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 r126-v6si21387032pfc.202.2018.05.24.03.29.30; Thu, 24 May 2018 03:29:44 -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 S1032095AbeEXK2u (ORCPT + 99 others); Thu, 24 May 2018 06:28:50 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:39194 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031078AbeEXK2m (ORCPT ); Thu, 24 May 2018 06:28:42 -0400 Received: by mail-wr0-f194.google.com with SMTP id w18-v6so2130560wrn.6 for ; Thu, 24 May 2018 03:28:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=rbHeWcjZ0RP4euHIjW6n/saLL/sz1+W1MAdGO3CG4Ns=; b=OIQnBWy9a6xxa0DlgoCs3kSNsnfQUPf+3rTw7ZiTQNY+JKBmwEZ1gjV5tt/5VipvHp cPh+Oxgj+t/X7jYcL6CHaUVs4WTbgPwHoWKWKwjU6R4DUqguGrtzyYJHT3n5uy50AHze uWQ36CwhHt1ZFBrjNIevFkIcwKu0moeMEaOvsg/xXTLLXkJgg2b7MKNiJh8rTRuTdcKa 45t+uaOYYpKOcciuxxJ3Gbt2s/JCKr2PUJF4KkJlGXZKHriaAoS3YWq6DGmbIEHvsAJC dlPyAHs4i+nlyb+emFUsmmzs2ny5iPXl7esFWSkhCYBuDqruOCwzZ21J14c8/jfF5go8 qjCA== X-Gm-Message-State: ALKqPwdXQX2az7Q0Q0XtBsFpeZp0uWR2pu2RR4Z2zVnqGLPK0o2jQOvb 8jwOTOk08qgOLImWhFdU8BhFMQ== X-Received: by 2002:adf:b89b:: with SMTP id i27-v6mr4146693wrf.163.1527157720588; Thu, 24 May 2018 03:28:40 -0700 (PDT) Received: from localhost.localdomain ([151.15.207.242]) by smtp.gmail.com with ESMTPSA id 141-v6sm9281735wmf.35.2018.05.24.03.28.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 May 2018 03:28:39 -0700 (PDT) Date: Thu, 24 May 2018 12:28:37 +0200 From: Juri Lelli To: Waiman Long 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 Subject: Re: [PATCH v8 4/6] cpuset: Make generate_sched_domains() recognize isolated_cpus Message-ID: <20180524102837.GA3948@localhost.localdomain> References: <1526590545-3350-1-git-send-email-longman@redhat.com> <1526590545-3350-5-git-send-email-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1526590545-3350-5-git-send-email-longman@redhat.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?