From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754030AbbIKW14 (ORCPT ); Fri, 11 Sep 2015 18:27:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:59428 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752125AbbIKW1z (ORCPT ); Fri, 11 Sep 2015 18:27:55 -0400 Date: Fri, 11 Sep 2015 15:27:44 -0700 From: Davidlohr Bueso To: Waiman Long Cc: Peter Zijlstra , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, Scott J Norton , Douglas Hatch Subject: Re: [PATCH v6 1/6] locking/qspinlock: relaxes cmpxchg & xchg ops in native code Message-ID: <20150911222744.GC19736@linux-q0g1.site> References: <1441996658-62854-1-git-send-email-Waiman.Long@hpe.com> <1441996658-62854-2-git-send-email-Waiman.Long@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <1441996658-62854-2-git-send-email-Waiman.Long@hpe.com> 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 Fri, 11 Sep 2015, Waiman Long wrote: >@@ -46,7 +46,7 @@ static inline bool virt_queued_spin_lock(struct qspinlock *lock) > if (!static_cpu_has(X86_FEATURE_HYPERVISOR)) > return false; > >- while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0) >+ while (atomic_cmpxchg_acquire(&lock->val, 0, _Q_LOCKED_VAL) != 0) > cpu_relax(); This code has changed with Peter's recent ccas fix. And the whole virt_queued_spin_lock() thing will now be under pv configs. So this doesn't apply to native code anymore, so it looks like it should be dropped altogether. Thanks, Davidlohr