From: Nick Piggin Subject: Re: [FSAIO][PATCH 6/8] Enable asynchronous wait page and lock page Date: Thu, 04 Jan 2007 17:50:34 +1100 Message-ID: <459CA3BA.9040806@yahoo.com.au> References: <20061227153855.GA25898@in.ibm.com> <20061228082308.GA4476@in.ibm.com> <20061228084149.GF6971@in.ibm.com> <20061228115510.GA25644@infradead.org> <20061228144717.GA10156@in.ibm.com> <20070102142627.GA14954@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Suparna Bhattacharya , linux-aio@kvack.org, akpm@osdl.org, drepper@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, jakub@redhat.com, mingo@elte.hu Return-path: Received: from smtp106.mail.mud.yahoo.com ([209.191.85.216]:27344 "HELO smtp106.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S932305AbXADGvn (ORCPT ); Thu, 4 Jan 2007 01:51:43 -0500 To: Christoph Hellwig In-Reply-To: <20070102142627.GA14954@infradead.org> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Christoph Hellwig wrote: > On Thu, Dec 28, 2006 at 08:17:17PM +0530, Suparna Bhattacharya wrote: > >>I am really bad with names :( I tried using the _wq suffixes earlier and >>that seemed confusing to some, but if no one else objects I'm happy to use >>that. I thought aio_lock_page() might be misleading because it is >>synchronous if a regular wait queue entry is passed in, but again it may not >>be too bad. >> >>What's your preference ? Does anything more intuitive come to mind ? > > > Beein bad about naming seems to be a disease, at least I suffer from it > aswell. I wouldn't mind either the _wq or aio_ naming - _wq describes > the way it's called and aio_ describes it's a special case for aio. > Similarly to how ->aio_read/->aio_write can be used for synchronous I/O > aswell. What about lock_page_async? A synchronous lock_page is the normal case, and for that guy it makes no sense to explicitly pass in a waitqueue, so it kind of falls into place? -- SUSE Labs, Novell Inc. Send instant messages to your online friends http://au.messenger.yahoo.com