From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [RFC] Add support for semaphore-like structure with support for asynchronous I/O Date: Wed, 30 Mar 2005 15:44:44 -0800 Message-ID: <20050330154444.02da9765.akpm@osdl.org> References: <1112219491.10771.18.camel@lade.trondhjem.org> <20050330143409.04f48431.akpm@osdl.org> <1112224663.18019.39.camel@lade.trondhjem.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Return-path: Received: from fire.osdl.org ([65.172.181.4]:17315 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S262597AbVC3Xok (ORCPT ); Wed, 30 Mar 2005 18:44:40 -0500 To: Trond Myklebust In-Reply-To: <1112224663.18019.39.camel@lade.trondhjem.org> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Trond Myklebust wrote: > > This is required in order to allow threads such as rpciod or keventd > itself (for which sleeping may cause deadlocks) to ask the iosem manager > code to simply queue the work that need to run once the iosem has been > granted. That work function is then, of course, responsible for > releasing the iosem when it is done. I see. I think. Should we be using those aio/N threads for this? They don't seem to do much else...