From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Nesterov Subject: Re: [PATCH v6 4/5] MCS Lock: Barrier corrections Date: Wed, 27 Nov 2013 17:58:40 +0100 Message-ID: <20131127165840.GA26138@redhat.com> References: <20131122155835.GR3866@twins.programming.kicks-ass.net> <20131122182632.GW4138@linux.vnet.ibm.com> <20131122185107.GJ4971@laptop.programming.kicks-ass.net> <20131125173540.GK3694@twins.programming.kicks-ass.net> <20131125180250.GR4138@linux.vnet.ibm.com> <20131125182715.GG10022@twins.programming.kicks-ass.net> <20131125235252.GA4138@linux.vnet.ibm.com> <20131126095945.GI10022@twins.programming.kicks-ass.net> <20131126192133.GF789@laptop.programming.kicks-ass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20131126192133.GF789@laptop.programming.kicks-ass.net> Sender: owner-linux-mm@kvack.org To: Peter Zijlstra Cc: Linus Torvalds , "Paul E. McKenney" , Will Deacon , Tim Chen , 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 List-Id: linux-arch.vger.kernel.org On 11/26, Peter Zijlstra wrote: > > On Tue, Nov 26, 2013 at 11:00:50AM -0800, Linus Torvalds wrote: > > > IOW, where do we really care about the "unlock+lock" is a memory > > barrier? And could we make those places explicit, and then do > > something similar to the above to them? > > So I don't know :-( > > I do know myself and Oleg have often talked about it, and I'm fairly > sure we must have used it at some point. No... I can't recall any particular place which explicitely relies on "unlock+lock => mb(). (although I know the out-of-tree example which can be ignored ;) I can only recall that this was mentioned in the context like "no, the lack of mb() can't explain the problem because we have unlock+lock". Oleg. -- 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