Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754951AbbHCShQ (ORCPT ); Mon, 3 Aug 2015 14:37:16 -0400 Received: from mx2.suse.de ([195.135.220.15]:46651 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753683AbbHCShO (ORCPT ); Mon, 3 Aug 2015 14:37:14 -0400 Message-ID: <1438627026.17146.14.camel@stgolabs.net> Subject: Re: [PATCH v4 2/7] locking/pvqspinlock: Add pending bit support 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 Date: Mon, 03 Aug 2015 11:37:06 -0700 In-Reply-To: <1438395724-25910-3-git-send-email-Waiman.Long@hp.com> References: <1438395724-25910-1-git-send-email-Waiman.Long@hp.com> <1438395724-25910-3-git-send-email-Waiman.Long@hp.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 721 Lines: 19 On Fri, 2015-07-31 at 22:21 -0400, Waiman Long wrote: > /* > + * Try to acquire the lock and wait using the pending bit > + */ > +static int pv_pending_lock(struct qspinlock *lock, u32 val) Sorry but, why did yo not rewrite the function as we had previously discussed. This is very confusing to read, the one I suggested follows a much nicer flow and purposely illustrates the intention. You also failed to address my loop semantics concerns altogether. Thanks, Davidlohr -- 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/