Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755116AbXEBMjf (ORCPT ); Wed, 2 May 2007 08:39:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755206AbXEBMjf (ORCPT ); Wed, 2 May 2007 08:39:35 -0400 Received: from haxent.com ([65.99.219.155]:1778 "EHLO haxent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755116AbXEBMjf (ORCPT ); Wed, 2 May 2007 08:39:35 -0400 Message-ID: <46388677.4050706@haxent.com.br> Date: Wed, 02 May 2007 09:39:19 -0300 From: Davi Arnaut MIME-Version: 1.0 To: Ulrich Drepper Cc: Andrew Morton , Davide Libenzi , Linus Torvalds , Linux Kernel Mailing List Subject: Re: [patch 14/22] pollfs: pollable futex References: <20070502052235.914764000@haxent.com.br> <20070502053427.123392000@haxent.com.br> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1010 Lines: 29 Ulrich Drepper wrote: > On 5/1/07, Davi Arnaut wrote: >> The pollable futex approach is far superior (send and receive events from >> userspace or kernel) to eventfd and fixes (supercedes) FUTEX_FD at the same time. >> [...] > > > - more complicated case: I have to wait for multiple futexes and lock > them all at the same time or don't return at all. This is possible with > SysV semaphores and generally useful and needed. > How can this be implemented with your scheme? It's quite easy to implement this scheme by write()ing the futexes all at once but that would break the one futex per fd association. For atomicity: if one of the futexes can't be queued, we would rollback (unqueue) the others. Sounds sane? -- Davi Arnaut - 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/