Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1777237imu; Tue, 6 Nov 2018 04:17:12 -0800 (PST) X-Google-Smtp-Source: AJdET5dqddchGAGqw6BVFmW/WAFRBS3QAkiCDb5WjscxDSTHnTaIRknEGMeXGaCjnGMaGXyTUbZP X-Received: by 2002:a62:5fc5:: with SMTP id t188-v6mr25953722pfb.84.1541506632346; Tue, 06 Nov 2018 04:17:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541506632; cv=none; d=google.com; s=arc-20160816; b=y3hme1o6/yvAfBHPJXIS4OYJyci3mHvm3zeXJffog8HqsrcuVxBWDwZy7vipgdEvuH 1JpZF+9Z0yndQVAhpnNn+fvN+IhE8t3VlfEtiK91QvhCP7Hm5THtkh1J9jnMGqzCREjg DSpJG04dzKcVoZbGuDBYDt6kAQFAm5V8jWT5efBvICL4Jnthfaiw63gW+I1ntEGBJx21 UFyOeRFasiWz6bTdSEq24pUNm9673rWlDaJLp00n/QQ6omWXrf2cScphxvSdaIEXI6/d YzVPQkO/fhJJ+wEAiToAsZT7kRLKpP1kbDgiEZMe0F/fcz8hnQX6Mn7ID9JphSmuL2iA Ef6g== 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=QM4hvYp9M8WCw+TKG7IEIs4GRbuBxcFezGbs72Qu0ME=; b=Wp6Lq0aaJFVYVXSx+N/zPzqFrif4RvYLHxLt2qr+t7040Lo9b81W5/3bhl/4RIsJ+E p3OVdlO4JGuPzs8KCMZHkLGUWW29MXdUVV7nfJSR8lcG6HPiVRwQVl0CKLih5IKDiCKt 0/cp4OxwKYjO8slslOrgMVZ6APJHsYORb/bHuGG+YceBtNax1ijDjEP8RXcjL6iiHcEp +A/zhco/jIYrLYu67K/CE19qbPSMpTNExxPI/oqjzuzzSMrOJk8nI6zJ7E/pAdyq22sd 2GrDaBvZEZ977lKls5iqaRFTUHwN+HWwSr/jH672I6Me6IcHTN9pJLpaOwSXQGcPu8rH l3nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=u0IAF1St; 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 d10-v6si48080048pgh.385.2018.11.06.04.16.56; Tue, 06 Nov 2018 04:17:12 -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=u0IAF1St; 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 S1730520AbeKFVBA (ORCPT + 99 others); Tue, 6 Nov 2018 16:01:00 -0500 Received: from merlin.infradead.org ([205.233.59.134]:57110 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726976AbeKFVBA (ORCPT ); Tue, 6 Nov 2018 16:01:00 -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=QM4hvYp9M8WCw+TKG7IEIs4GRbuBxcFezGbs72Qu0ME=; b=u0IAF1St1Wpe7TnAmPmm8OeEr F+Zqs6iTZufRWi83teDoGp96/aImqTTaRTSqECKAd5Tjn9V9lKrFl4ftSFcTTD20ouR0wMBT5ClNj eXMhQd4JXUdndPqUCgg2I6QJTNQ0oxtv6UrZWo3C94/H7HzREFyJcJ2yhVWgflV6u5GRIInODRgK6 0lgFiDxwBUJN6HrwZJQNyR72J7m+tX2Q9silfTl8Ga3yzHOEGcKX3Hro5atHtMum+WQmeaXnD2tzJ 3+dXG2s19xJQ6HPZQlpAD/2bCqweNhxbpyq93SOriHpLXyYO552/uI7n1V090ddjjBGZ7Ck4L4q0l jYXskh5yQ==; 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 1gJze5-0005h3-OF; Tue, 06 Nov 2018 11:35:46 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 541532029F9FF; Tue, 6 Nov 2018 12:35:38 +0100 (CET) Date: Tue, 6 Nov 2018 12:35:38 +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 04/12] cpuset: Add new v2 cpuset.sched.partition flag Message-ID: <20181106113538.GK22431@hirez.programming.kicks-ass.net> References: <1539635377-22335-1-git-send-email-longman@redhat.com> <1539635377-22335-5-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-5-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:29PM -0400, Waiman Long wrote: > + * Called with cpuset_mutex held. > + */ > +static int update_parent_subparts_cpumask(struct cpuset *cpuset, int cmd, > + struct cpumask *newmask, > + struct tmpmasks *tmp) > +{ > + struct cpuset *parent = parent_cs(cpuset); > + int adding; /* Moving cpus from effective_cpus to subparts_cpus */ > + int deleting; /* Moving cpus from subparts_cpus to effective_cpus */ > + I much prefer doing away with that "called with * held" comment crud and add: lockdep_assert_held(&cpuset_mutex);