From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3snzX429DtzDqQq for ; Tue, 4 Oct 2016 10:58:28 +1100 (AEDT) Message-ID: <1475539094.3784.113.camel@kernel.crashing.org> Subject: Re: [PATCH] powerpc: During context switch, check before setting mm_cpumask From: Benjamin Herrenschmidt To: Balbir Singh , Anton Blanchard , paulus@samba.org, mpe@ellerman.id.au, npiggin@gmail.com, cyrilbur@gmail.com Cc: linuxppc-dev@lists.ozlabs.org, "Aneesh Kumar K.V" Date: Tue, 04 Oct 2016 10:58:14 +1100 In-Reply-To: References: <1475476829-6296-1-git-send-email-anton@ozlabs.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2016-10-04 at 10:25 +1100, Balbir Singh wrote: > I think this makes sense, in fact I think in the longer term we can > even use __set_bit() reorder-able version since we have a sync > coming out of schedule(). The read side for TLB flush can use a RMB No, that wouldn't be atomic vs. other threads accessing the same bitmap. Ben.