From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030300AbXDWAIF (ORCPT ); Sun, 22 Apr 2007 20:08:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965656AbXDWAIE (ORCPT ); Sun, 22 Apr 2007 20:08:04 -0400 Received: from ozlabs.org ([203.10.76.45]:56313 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965641AbXDWAIC (ORCPT ); Sun, 22 Apr 2007 20:08:02 -0400 Subject: Re: [REPORT] cfs-v4 vs sd-0.44 From: Rusty Russell To: Ulrich Drepper Cc: William Lee Irwin III , Linus Torvalds , Kyle Moffett , Willy Tarreau , Ingo Molnar , Con Kolivas , linux-kernel@vger.kernel.org, Andrew Morton , Nick Piggin , Mike Galbraith , Arjan van de Ven , Peter Williams , Thomas Gleixner , caglar@pardus.org.tr, Gene Heskett In-Reply-To: References: <20070421154614.GA26169@elte.hu> <20070421164241.GF2986@holomorphy.com> <20070422070238.GH2986@holomorphy.com> <20070422084843.GJ2986@holomorphy.com> Content-Type: text/plain Date: Mon, 23 Apr 2007 10:07:20 +1000 Message-Id: <1177286840.17026.16.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2007-04-22 at 09:16 -0700, Ulrich Drepper wrote: > On 4/22/07, William Lee Irwin III wrote: > > On Sun, Apr 22, 2007 at 12:17:31AM -0700, Ulrich Drepper wrote: > > > For futex(), the extension is needed for the FUTEX_WAIT operation. We > > > need a new operation FUTEX_WAIT_FOR or so which takes another (the > > > fourth) parameter which is the PID of the target. > > > For FUTEX_LOCK_PI we need no extension. The futex value is the PID of > > > the current owner. This is required for the whole interface to work > > > in the first place. > > > > We'll have to send things out and see what sticks here. There seems to > > be some pickiness above. > > I know Rusty will shudder since it makes futexes yet more complicated > (although only if the user wants it) but if you introduce the concept > of "yield to" then this extension makes really sense and it is a quite > simple extension. Plus: I'm the most affected by the change since I > have to change code to use it and I'm fine with it. Hi Uli, I wouldn't worry: futexes long ago jumped the shark. I think it was inevitable that once we started endorsing programs bypassing the kernel for IPC that we'd want some form of yield_to(). And yield_to(p) has much more sane semantics than yield(). Cheers, Rusty.