Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753702AbbGaRBR (ORCPT ); Fri, 31 Jul 2015 13:01:17 -0400 Received: from g2t2353.austin.hp.com ([15.217.128.52]:42889 "EHLO g2t2353.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752792AbbGaRBQ (ORCPT ); Fri, 31 Jul 2015 13:01:16 -0400 Message-ID: <55BBA9D9.9030302@hp.com> Date: Fri, 31 Jul 2015 13:01:13 -0400 From: Waiman Long User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130109 Thunderbird/10.0.12 MIME-Version: 1.0 To: Peter Zijlstra CC: Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, Scott J Norton , Douglas Hatch , Davidlohr Bueso Subject: Re: [PATCH v3 1/7] locking/pvqspinlock: Unconditional PV kick with _Q_SLOW_VAL References: <1437595962-21472-1-git-send-email-Waiman.Long@hp.com> <1437595962-21472-2-git-send-email-Waiman.Long@hp.com> <20150731083920.GD19282@twins.programming.kicks-ass.net> In-Reply-To: <20150731083920.GD19282@twins.programming.kicks-ass.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 896 Lines: 20 On 07/31/2015 04:39 AM, Peter Zijlstra wrote: > On Wed, Jul 22, 2015 at 04:12:36PM -0400, Waiman Long wrote: >> The smp_store_release() is not a full barrier. In order to avoid missed >> wakeup, we may need to add memory barrier around locked and cpu state >> variables adding to complexity. As the chance of spurious wakeup is very >> low, it is easier and safer to just do an unconditional kick at unlock >> time. > This needs to better spell out the race; my still sleeping brain doesn't > want to co-operate and its generally better to spell out these things > anyway. Sure, I will add a comment to talk about the possible race. Cheers, Longman -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/