Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755307AbZCLDRS (ORCPT ); Wed, 11 Mar 2009 23:17:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751433AbZCLDRG (ORCPT ); Wed, 11 Mar 2009 23:17:06 -0400 Received: from kanga.kvack.org ([205.233.56.17]:56194 "EHLO kanga.kvack.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750742AbZCLDRF (ORCPT ); Wed, 11 Mar 2009 23:17:05 -0400 X-Greylist: delayed 1962 seconds by postgrey-1.27 at vger.kernel.org; Wed, 11 Mar 2009 23:17:05 EDT Date: Wed, 11 Mar 2009 22:44:19 -0400 From: Benjamin LaHaise To: Eric Dumazet 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 Message-ID: <20090312024419.GG18665@kvack.org> References: <49B54143.1010607@redhat.com> <49B57CB0.5020300@cosmosbay.com> <49B875F7.3030305@cosmosbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49B875F7.3030305@cosmosbay.com> User-Agent: Mutt/1.4.2.2i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 646 Lines: 14 On Thu, Mar 12, 2009 at 03:39:51AM +0100, Eric Dumazet wrote: > Assuming that __fput() cannot be called from interrupt context. > -> fput() should not be called from interrupt context as well. It doesn't get called in irq context. The atomic dec is done in irq context, and if that is the last user of the file descriptor, it's placed on a work queue and then released in process context. -ben -- 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/