Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753685AbdG2KwG (ORCPT ); Sat, 29 Jul 2017 06:52:06 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:37290 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753586AbdG2KwF (ORCPT ); Sat, 29 Jul 2017 06:52:05 -0400 Date: Sat, 29 Jul 2017 12:51:54 +0200 From: Peter Zijlstra To: Nicholas Piggin Cc: Mathieu Desnoyers , "Paul E. McKenney" , linux-kernel , Boqun Feng , Andrew Hunter , maged michael , gromer , Avi Kivity , Michael Ellerman , Benjamin Herrenschmidt , Palmer Dabbelt Subject: Re: [RFC PATCH v2] membarrier: expedited private command Message-ID: <20170729105154.GD6524@worktop.programming.kicks-ass.net> References: <20170727211314.32666-1-mathieu.desnoyers@efficios.com> <20170728085532.ylhuz2irwmgpmejv@hirez.programming.kicks-ass.net> <20170728115702.5vgnvwhmbbmyrxbf@hirez.programming.kicks-ass.net> <2118431661.29566.1501256295573.JavaMail.zimbra@efficios.com> <20170728164642.jolhwyqs3swhzmrb@hirez.programming.kicks-ass.net> <856243469.29609.1501261613685.JavaMail.zimbra@efficios.com> <20170729115840.7dff4ea5@roar.ozlabs.ibm.com> <20170729092333.GB6524@worktop.programming.kicks-ass.net> <20170729194543.04c761d6@roar.ozlabs.ibm.com> <20170729194856.017bbaca@roar.ozlabs.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170729194856.017bbaca@roar.ozlabs.ibm.com> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 494 Lines: 13 On Sat, Jul 29, 2017 at 07:48:56PM +1000, Nicholas Piggin wrote: > On Sat, 29 Jul 2017 19:45:43 +1000 > Nicholas Piggin wrote: > > > hmm, we might be able to restrict iteration > > to mm_cpumask(current->mm), no? > > Oh that's been discussed too. I'll read back over it too. Right, the main problem is that some architectures (arm64 for instance, although Will is looking at it) don't use mm_cpumask() at all. Other architectures (PPC for instance) only ever set bits.