From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757044Ab0EGQZI (ORCPT ); Fri, 7 May 2010 12:25:08 -0400 Received: from casper.infradead.org ([85.118.1.10]:44117 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755083Ab0EGQZG (ORCPT ); Fri, 7 May 2010 12:25:06 -0400 Subject: Re: [PATCH 4/4] futex: Add FUTEX_LOCK with optional adaptive spinning From: Peter Zijlstra To: Thomas Gleixner Cc: Darren Hart , linux-kernel@vger.kernel.org, Ingo Molnar , Eric Dumazet , "Peter W. Morreale" , Rik van Riel , Steven Rostedt , Gregory Haskins , Sven-Thorsten Dietrich , Chris Mason , John Cooper , Chris Wright , Ulrich Drepper , Alan Cox , Avi Kivity In-Reply-To: References: <1273127060-30375-1-git-send-email-dvhltc@us.ibm.com> <1273127060-30375-5-git-send-email-dvhltc@us.ibm.com> Content-Type: text/plain; charset="UTF-8" Date: Fri, 07 May 2010 18:24:51 +0200 Message-ID: <1273249491.1642.360.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2010-05-07 at 18:20 +0200, Thomas Gleixner wrote: > + if (!owner->oncpu) can't do that, that relies on __ARCH_WANT_UNLOCKED_CTXSW Please keep the code as near mutex_spin_on_owner() as possible.