From: Peter Zijlstra Subject: Re: [PATCH v6 4/5] MCS Lock: Barrier corrections Date: Sat, 23 Nov 2013 22:29:29 +0100 Message-ID: <20131123212929.GP4971@laptop.programming.kicks-ass.net> References: <20131122200620.GA4138@linux.vnet.ibm.com> <20131122203738.GC4138@linux.vnet.ibm.com> <20131122215208.GD4138@linux.vnet.ibm.com> <20131123002542.GF4138@linux.vnet.ibm.com> <20131123013654.GG4138@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org To: Linus Torvalds Cc: Paul McKenney , Ingo Molnar , Tim Chen , Will Deacon , Ingo Molnar , Andrew Morton , Thomas Gleixner , "linux-kernel@vger.kernel.org" , linux-mm , "linux-arch@vger.kernel.org" , Waiman Long , Andrea Arcangeli , Alex Shi , Andi Kleen , Michel Lespinasse , Davidlohr Bueso , Matthew R Wilcox , Dave Hansen , Rik van Riel , Peter Hurley , Raghavendra K T , George Spelvin List-Id: linux-arch.vger.kernel.org On Sat, Nov 23, 2013 at 12:21:13PM -0800, Linus Torvalds wrote: > *SOME* assumption of mine must be wrong. But I don't see which one. I haven't read your email in full detail yet, but one thing I did miss was cache-snoops. One of the reasons for failing transitive / multi-copy atomicity is that CPUs might have different views of the memory state depending on from which caches they can get snoops. Eg. if CPU0 and CPU1 share a cache level but CPU2 does not, CPU1 might observe a write before CPU2 can. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org