Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756104AbXKIThz (ORCPT ); Fri, 9 Nov 2007 14:37:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752737AbXKIThr (ORCPT ); Fri, 9 Nov 2007 14:37:47 -0500 Received: from agminet01.oracle.com ([141.146.126.228]:33679 "EHLO agminet01.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751151AbXKIThr (ORCPT ); Fri, 9 Nov 2007 14:37:47 -0500 Date: Fri, 9 Nov 2007 14:35:54 -0500 From: Chris Mason To: Zach Brown Cc: Trond Myklebust , Peter Zijlstra , Jens Axboe , linux-kernel@vger.kernel.org, akpm@linux-foundation.org, linux-aio@kvack.org Subject: Re: dio_get_page() lockdep complaints Message-ID: <20071109143554.4b3b8961@think.oraclecorp.com> In-Reply-To: <4734B225.1050206@oracle.com> References: <20070419073828.GB20928@kernel.dk> <1194627742.6289.175.camel@twins> <4734992C.7000408@oracle.com> <1194630300.7459.65.camel@heimdal.trondhjem.org> <47349D66.2040109@oracle.com> <20071109130156.4b05a652@think.oraclecorp.com> <4734A858.2010307@oracle.com> <20071109135327.01bca1d9@think.oraclecorp.com> <20071109135736.04a4346a@think.oraclecorp.com> <4734B225.1050206@oracle.com> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.0; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 862 Lines: 24 On Fri, 09 Nov 2007 11:16:53 -0800 Zach Brown wrote: > > Ugh, I thought the preallocation was getting freed elsewhere, but it > > looks like I was wrong. We can't just skip the i_mutex after all, > > sorry. > > Ah, so none of those tests at the top will stop tail packing if > there's been pre-allocation? > > Like, uh, the inode reference count test? > It always drops prealloc, regardless of i_count. One fix is to change the prealloc routines to take/drop a reference on the inode. preallocation is already dropped when the transaction ends, so things would continue working. -chris - 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/