Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755369AbZCLDlt (ORCPT ); Wed, 11 Mar 2009 23:41:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751512AbZCLDlk (ORCPT ); Wed, 11 Mar 2009 23:41:40 -0400 Received: from gw1.cosmosbay.com ([212.99.114.194]:56915 "EHLO gw1.cosmosbay.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751120AbZCLDlj convert rfc822-to-8bit (ORCPT ); Wed, 11 Mar 2009 23:41:39 -0400 Message-ID: <49B8841C.20701@cosmosbay.com> Date: Thu, 12 Mar 2009 04:40:12 +0100 From: Eric Dumazet User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Benjamin LaHaise CC: Andrew Morton , Jeff Moyer , Avi Kivity , linux-aio , zach.brown@oracle.com, linux-kernel@vger.kernel.org, Davide Libenzi Subject: Re: [patch] aio: remove aio-max-nr and instead use the memlock rlimit to limit the number of pages pinned for the aio completion ring References: <49B54143.1010607@redhat.com> <49B57CB0.5020300@cosmosbay.com> <49B875F7.3030305@cosmosbay.com> <20090312024419.GG18665@kvack.org> <49B8807A.5080302@cosmosbay.com> <20090312032928.GH18665@kvack.org> <49B88280.8060603@cosmosbay.com> <20090312033613.GJ18665@kvack.org> In-Reply-To: <20090312033613.GJ18665@kvack.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (gw1.cosmosbay.com [0.0.0.0]); Thu, 12 Mar 2009 04:40:13 +0100 (CET) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 693 Lines: 16 Benjamin LaHaise a ?crit : > On Thu, Mar 12, 2009 at 04:33:20AM +0100, Eric Dumazet wrote: >> aio breaks the fget_light() concept too, if process is mono threaded. > > AIO requests cannot use fget_light(). The user space program could very > well use the close() syscall to destroy the file descriptor while an io > request is in flight, so you cannot avoid the reference counting overhead. Yes, you are right, AIO doesnt break fget_light() -- 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/