From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756718AbYAIWFZ (ORCPT ); Wed, 9 Jan 2008 17:05:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753068AbYAIWFN (ORCPT ); Wed, 9 Jan 2008 17:05:13 -0500 Received: from ozlabs.org ([203.10.76.45]:59234 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752564AbYAIWFL (ORCPT ); Wed, 9 Jan 2008 17:05:11 -0500 From: Rusty Russell To: Zach Brown Subject: Re: [PATCH 5/6] syslets: add generic syslets infrastructure Date: Thu, 10 Jan 2008 09:04:45 +1100 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Ingo Molnar , Ulrich Drepper , Arjan van de Ven , Andrew Morton , Alan Cox , Evgeniy Polyakov , "David S. Miller" , Suparna Bhattacharya , Davide Libenzi , Jens Axboe , Thomas Gleixner , Dan Williams , Jeff Moyer , Simon Holm Thogersen , suresh.b.siddha@intel.com References: <1196983219534-git-send-email-zach.brown@oracle.com> <200801091448.46241.rusty@rustcorp.com.au> <47850F99.5020001@oracle.com> In-Reply-To: <47850F99.5020001@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801100904.46842.rusty@rustcorp.com.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 10 January 2008 05:16:57 Zach Brown wrote: > > The latter. A ring is optimal for processing a huge number of requests, > > but if you're really going to be firing off syslet threads all over the > > place you're not going to be optimal anyway. And being able to point the > > return value to the stack or into some datastructure is way nicer to code > > (zero setup == easy to understand and easy to convert). > > One of Linus' rhetorical requirements for the syslets work is that we be > able to wait for the result without spending overhead building up state > in some completion context. The userland rings in the current syslet > patches achieve that and don't seem outrageously complicated. I'd have to read his original statement, but eventfd doesn't build up state, so I think it qualifies. YA incompatible userspace notification system just doesn't excite me though. Cheers, Rusty.