Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1739398imu; Tue, 6 Nov 2018 03:39:27 -0800 (PST) X-Google-Smtp-Source: AJdET5eV5MYGXowd25cGlcZf69Ok0a1xHWAbEXFRhW3+b8FkjeJDJLDAbNHpCqn4L0RrIU7GbMgq X-Received: by 2002:a62:8d16:: with SMTP id z22-v6mr25816289pfd.185.1541504367458; Tue, 06 Nov 2018 03:39:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541504367; cv=none; d=google.com; s=arc-20160816; b=jXk9OG1qLDCqXHl9XDZ2Q11rs8JfrRn0bYW4gk2KIqk9J+z4VLYjqRMAJRv+nknYfw r6lDyRajOR/cUPFWm9E0efhgAGQSKW7GRRNFyxh0+vzOzDfO5i+sVa/yfEGxnFJeL6Gb aoCO095JY8FNWK4m1XIqivfnmPSQJ9B/H57bogdRviYDaFmFQdHO1RrcK32+jKkGxVWe c1qJ77uNKgO3g+2IAoIlvT9BzKq71THhvHT3Bwlf9LM1E2UxFqE7BVx1jBDq2RT9fkcQ T1cEY5fAEMn3d3ImZEB4bGwRZXv9AMt8hFMXEacWAn2gnmopvse6NRK19oWfduXOV68z Hqbw== 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:dkim-signature; bh=nhV7MP9fmom1olzqQQOBdE69jYgH85uDi+QqRtqAtg8=; b=bpTuo7jcFHHU0rAY2JW1JvHPZYoGZsXSjkZYR3XJ373d0m/y4sutk+uMQZSFilDiTF BuzV0W/9dFUUt5hOOYqUl2chP0cwrfeXnfBBrYzSy83+mDOXwYqhQa0jAYyAccY/opTQ piv+68SlnlHsw5p11Z9tjVPn+hXzyWiFFjMlbYnMljoGC7zOTNwdBPMX9LWvLPYpUfqI HPHcgBc0+y3A/+sTWaORzflVNo4dgVYWlltMSEU7y1vGu3okTE9CtFa13QoewnGUsY2r wsNKWytcvJ56Y6FMN3ilft0jRIY+ODl+D8UEqheePfqaS71uuVbohRYS3a69HvNJvbYN m4dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=WPmdbnof; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c18-v6si37917880plz.116.2018.11.06.03.39.12; Tue, 06 Nov 2018 03:39:27 -0800 (PST) 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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=WPmdbnof; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730598AbeKFVCQ (ORCPT + 99 others); Tue, 6 Nov 2018 16:02:16 -0500 Received: from merlin.infradead.org ([205.233.59.134]:57158 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730262AbeKFVCQ (ORCPT ); Tue, 6 Nov 2018 16:02:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=nhV7MP9fmom1olzqQQOBdE69jYgH85uDi+QqRtqAtg8=; b=WPmdbnofwrpymTzT3W5uqbalC yXkbFo768UY/COShyd5oe5c/+DoDMcPiDFDEILxY+/wsrTsSwSUZ4F05ry8gNXXwaE5gHDPLs8QTC 8FOM6qPfvhqcAWFF4hlWMrzKVwo9XHGgxrVAVxG+ZumK+LJlNl3izMYnOdazqgP+8wfFSSQVOK+id 6eylgHIMpBHZgN8MdD3Avg4w7iz6BYU7Mi5gH8AH+esD0/JhIveGhdjryxAsGVHr9CcS/xdcFXBt2 +cRP7RsEAQh4WglbaXK9j++C8OZn1Lhy1XQldL9yfTI+TYrJ4ztw0+qI2LCjq1LVDeK76dBmdObhS jXOrHc29w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJzfa-0005i1-Bz; Tue, 06 Nov 2018 11:37:18 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D61242029F9FF; Tue, 6 Nov 2018 12:37:12 +0100 (CET) Date: Tue, 6 Nov 2018 12:37:12 +0100 From: Peter Zijlstra To: Waiman Long Cc: Tejun Heo , Li Zefan , Johannes Weiner , 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 , Juri Lelli , Patrick Bellasi , Tom Hromatka Subject: Re: [PATCH v14 05/12] cpuset: Add an error state to cpuset.sched.partition Message-ID: <20181106113712.GL22431@hirez.programming.kicks-ass.net> References: <1539635377-22335-1-git-send-email-longman@redhat.com> <1539635377-22335-6-git-send-email-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1539635377-22335-6-git-send-email-longman@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 15, 2018 at 04:29:30PM -0400, Waiman Long wrote: > Handling error returned by update_parent_subparts_cpumask() in > update_cpumasks_hier() is problematic as the states may become > inconsistent. To avoid that and increase flexibility in handling other > error cases, a new error state (-1) is added to the partition_root_state > flag. This new error state is set internally and user cannot write this > value to "cpuset.sched.partition". > > In this error state, the partition root becomes an erroneous one. It is > no longer a real partition root, but the CS_CPU_EXCLUSIVE flag will > still be set as it can be changed back to a real one if appropriate > change happens later on. I feel this Changelog should be much more explicit about the reasons this -1 state can happen. As is, I've got no clue.