From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756607Ab3KZL44 (ORCPT ); Tue, 26 Nov 2013 06:56:56 -0500 Received: from merlin.infradead.org ([205.233.59.134]:45315 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756546Ab3KZL4x (ORCPT ); Tue, 26 Nov 2013 06:56:53 -0500 Date: Tue, 26 Nov 2013 12:56:28 +0100 From: Peter Zijlstra To: Ingo Molnar Cc: Davidlohr Bueso , Thomas Gleixner , LKML , Jason Low , Darren Hart , Mike Galbraith , Jeff Mahoney , Linus Torvalds , Scott Norton , Tom Vaden , Aswin Chandramouleeswaran , Waiman Long , "Paul E. McKenney" Subject: Re: [RFC patch 0/5] futex: Allow lockless empty check of hashbucket plist in futex_wake() Message-ID: <20131126115628.GK10022@twins.programming.kicks-ass.net> References: <20131125203358.156292370@linutronix.de> <1385453551.12603.16.camel@buesod1.americas.hpqcorp.net> <20131126085256.GD789@laptop.programming.kicks-ass.net> <20131126112140.GC2410@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131126112140.GC2410@gmail.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 26, 2013 at 12:21:40PM +0100, Ingo Molnar wrote: > I'm somewhat reluctant to chalk it up to a single mfence - maybe > timings/behavior changed in some substantial way? Ah indeed! We also changed the case where an enqueueing futex sees the uval change and bails. It is now far more expensive due to having to both queue and unqueue, whereas before it wouldn't queue at all. I suppose the idea was to offset that by not requiring locking on the wake side.