From patchwork Thu Jan 6 17:40:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Bottomley X-Patchwork-Id: 459661 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p06HejgB022488 for ; Thu, 6 Jan 2011 17:40:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753972Ab1AFRkU (ORCPT ); Thu, 6 Jan 2011 12:40:20 -0500 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:33997 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753900Ab1AFRkT (ORCPT ); Thu, 6 Jan 2011 12:40:19 -0500 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 694FC8EE10F; Thu, 6 Jan 2011 09:40:17 -0800 (PST) Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SkkhM6rJphzq; Thu, 6 Jan 2011 09:40:17 -0800 (PST) Received: from [192.168.2.10] (dagonet.hansenpartnership.com [76.243.235.53]) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 37D9F8EE0DF; Thu, 6 Jan 2011 09:40:16 -0800 (PST) Subject: Re: still nfs problems [Was: Linux 2.6.37-rc8] From: James Bottomley To: Trond Myklebust Cc: Linus Torvalds , Russell King - ARM Linux , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, Marc Kleine-Budde , Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= , Marc Kleine-Budde , linux-arm-kernel@lists.infradead.org, Parisc List , linux-arch@vger.kernel.org In-Reply-To: <1294270104.16957.73.camel@mulgrave.site> References: <1294254337.16957.13.camel@mulgrave.site> <1294256169.16957.18.camel@mulgrave.site> <20110105200008.GJ8638@n2100.arm.linux.org.uk> <1294259637.16957.25.camel@mulgrave.site> <20110105210448.GM8638@n2100.arm.linux.org.uk> <1294262208.2952.4.camel@heimdal.trondhjem.org> <1294268808.2952.18.camel@heimdal.trondhjem.org> <1294270104.16957.73.camel@mulgrave.site> Date: Thu, 06 Jan 2011 11:40:13 -0600 Message-ID: <1294335614.22825.154.camel@mulgrave.site> Mime-Version: 1.0 X-Mailer: Evolution 2.30.1.2 Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 06 Jan 2011 17:40:46 +0000 (UTC) diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 996dd89..bde1911 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -587,12 +587,16 @@ int nfs_readdir_xdr_to_array(nfs_readdir_descriptor_t *desc, struct page *page, if (status < 0) break; pglen = status; + + invalidate_kernel_vmap_range(pages_ptr, pglen); + status = nfs_readdir_page_filler(desc, &entry, pages_ptr, page, pglen); if (status < 0) { if (status == -ENOSPC) status = 0; break; } + flush_kernel_vmap_range(pages_ptr, pglen); } while (array->eof_index < 0); nfs_readdir_free_large_page(pages_ptr, pages, array_size);