From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by kanga.kvack.org (Postfix) with ESMTP id 80EBF6B0152 for ; Thu, 7 Nov 2013 07:06:33 -0500 (EST) Received: by mail-pa0-f45.google.com with SMTP id kp14so517766pab.32 for ; Thu, 07 Nov 2013 04:06:33 -0800 (PST) Received: from psmtp.com ([74.125.245.156]) by mx.google.com with SMTP id ru9si2419278pbc.198.2013.11.07.04.06.31 for ; Thu, 07 Nov 2013 04:06:32 -0800 (PST) Received: by mail-ve0-f182.google.com with SMTP id jy13so299878veb.13 for ; Thu, 07 Nov 2013 04:06:29 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <1383773827.11046.355.camel@schen9-DESK> Date: Thu, 7 Nov 2013 21:06:29 +0900 Message-ID: Subject: Re: [PATCH v3 3/5] MCS Lock: Barrier corrections From: Linus Torvalds Content-Type: multipart/alternative; boundary=089e0115f6828bdaee04ea95184d Sender: owner-linux-mm@kvack.org List-ID: To: Michel Lespinasse Cc: Waiman Long , Arnd Bergmann , Rik van Riel , Aswin Chandramouleeswaran , "Paul E.McKenney" , Raghavendra K T , "Figo. zhang" , linux-arch@vger.kernel.org, Andi Kleen , Peter Zijlstra , George Spelvin , Tim Chen , Ingo Molnar , Peter Hurley , "H. Peter Anvin" , Andrew Morton , linux-mm , Andrea Arcangeli , Alex Shi , linux-kernel@vger.kernel.org, Scott J Norton , Thomas Gleixner , Dave Hansen , Matthew R Wilcox , Will Deacon , Davidlohr Bueso --089e0115f6828bdaee04ea95184d Content-Type: text/plain; charset=UTF-8 On Nov 7, 2013 6:55 PM, "Michel Lespinasse" wrote: > > Rather than writing arch-specific locking code, would you agree to > introduce acquire and release memory operations ? Yes, that's probably the right thing to do. What ops do we need? Store with release, cmpxchg and load with acquire? Anything else? Linus --089e0115f6828bdaee04ea95184d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Nov 7, 2013 6:55 PM, "Michel Lespinasse" <walken@google.com> wrote:
>
> Rather than writing arch-specific locking code, would you agree to
> introduce acquire and release memory operations ?

Yes, that's probably the right thing to do. What ops do = we need? Store with release, cmpxchg and load with acquire? Anything else?<= /p>

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Linus

--089e0115f6828bdaee04ea95184d-- -- 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