From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13193 invoked by alias); 22 Nov 2016 16:58:16 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 13177 invoked by uid 89); 22 Nov 2016 16:58:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*Ad:D*co X-HELO: mx1.redhat.com Message-ID: <1479833888.7146.1362.camel@localhost.localdomain> Subject: Re: BZ 20822 :powerpc: race condition in __lll_unlock_elision From: Torvald Riegel To: Florian Weimer Cc: munroesj@linux.vnet.ibm.com, Rajalakshmi Srinivasaraghavan , libc-alpha@sourceware.org, aaron Sawdey , Ulrich Weigand , Steve Munroe , carlos@redhat.com, adhemerval.zanella@linaro.org, adconrad@ubuntu.com, wschmidt@linux.vnet.ibm.com Date: Tue, 22 Nov 2016 16:58:00 -0000 In-Reply-To: <19d846f3-3362-f4a4-6c22-466dbdbf1d60@redhat.com> References: <1479394010.7146.1154.camel@localhost.localdomain> <1479771736.9880.42.camel@oc7878010663> <1479804279.7146.1280.camel@localhost.localdomain> <1479807670.7146.1295.camel@localhost.localdomain> <1479822346.7146.1313.camel@localhost.localdomain> <19d846f3-3362-f4a4-6c22-466dbdbf1d60@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-11/txt/msg00797.txt.bz2 On Tue, 2016-11-22 at 16:02 +0100, Florian Weimer wrote: > On 11/22/2016 02:45 PM, Torvald Riegel wrote: > > > Lock elision relies on this kind of mixed access. While it would be > > nice to have a common formal model for the various HTMs out there from > > the perspective of a C11/C++11 memory model setting, I don't think it's > > a big problem right now that we don't (AFAIK) have such a formal model. > > Lock elision should be well understood, so I'm not worried about any > > surprises regarding this use case. > > You are the expert. I'm just surprised we embrace a wild-west approach > to P&C again, while trying to convince others to argue from the > definitions instead based on gut feeling. To avoid misunderstandings: I'm not arguing in favor of embracing any wild-west approach. It would be great if we had a formal model that can cover more than one architecture's semantics. Nonetheless, we don't have it, and I don't see this as a big enough problem to prevent us from trying to use lock elision. Once someone comes up with a model, I suppose we'd certainly try to use it if possible.