From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933747AbbIVPzy (ORCPT ); Tue, 22 Sep 2015 11:55:54 -0400 Received: from mx2.suse.de ([195.135.220.15]:38883 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933719AbbIVPzw (ORCPT ); Tue, 22 Sep 2015 11:55:52 -0400 Date: Tue, 22 Sep 2015 08:55:42 -0700 From: Davidlohr Bueso To: Thomas Gleixner Cc: Peter Zijlstra , Ingo Molnar , Andrew Morton , Linus Torvalds , Will Deacon , "Paul E. McKenney" , linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: Re: [PATCH 3/5] locking/rtmutex: Use acquire/release semantics Message-ID: <20150922155542.GA2682@linux-q0g1.site> References: <1442866676-10359-1-git-send-email-dave@stgolabs.net> <1442866676-10359-4-git-send-email-dave@stgolabs.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 22 Sep 2015, Thomas Gleixner wrote: >> @@ -121,11 +130,14 @@ static inline bool unlock_rt_mutex_safe(struct rt_mutex *lock) >> * lock(wait_lock); >> * acquire(lock); >> */ >> - return rt_mutex_cmpxchg(lock, owner, NULL); >> + return rt_mutex_cmpxchg_acquire(lock, owner, NULL); > >Why is this acquire? Because I am an idiot, that should be a release... Thanks, Davidlohr