Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754595Ab0AHBEt (ORCPT ); Thu, 7 Jan 2010 20:04:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754198Ab0AHBEi (ORCPT ); Thu, 7 Jan 2010 20:04:38 -0500 Received: from mx2.netapp.com ([216.240.18.37]:49739 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754168Ab0AHBEi convert rfc822-to-8bit (ORCPT ); Thu, 7 Jan 2010 20:04:38 -0500 X-IronPort-AV: E=Sophos;i="4.49,238,1262592000"; d="scan'208";a="298899070" Subject: Re: [GIT PULL] Please pull NFS client bugfixes.... From: Trond Myklebust To: Linus Torvalds Cc: Andi Kleen , linux-kernel@vger.kernel.org In-Reply-To: References: <1262896174.2659.3.camel@localhost> <87zl4pmxzp.fsf@basil.nowhere.org> <1262901198.2659.38.camel@localhost> <20100107235149.GD16076@basil.fritz.box> <1262909682.2659.45.camel@localhost> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Organization: NetApp Date: Thu, 07 Jan 2010 20:03:21 -0500 Message-ID: <1262912601.2659.89.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 (2.28.2-1.fc12) X-OriginalArrivalTime: 08 Jan 2010 01:04:19.0368 (UTC) FILETIME=[81AF1280:01CA8FFE] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1158 Lines: 31 On Thu, 2010-01-07 at 16:34 -0800, Linus Torvalds wrote: > > On Thu, 7 Jan 2010, Trond Myklebust wrote: > > > > Yes. I want to pursue Peter Zijlstra's patches, which split up the mmap > > function into a set of parts which require the mmap_sem, and other parts > > which don't, and that adds a filesystem callback that allows for > > revalidation to occur outside the mmap_sem. > > I'm sorry, but that just sounds STUPID. > > Why? > > Because it means that you can trivially take page faults before the thing > is validated (think threads). Which would mean that another process/thread already has part of the file mmapped on the same client. I'm not arguing that have to revalidate in _that_ case. > If that is ok, then why do the revalidate at all? Just do the open/close > consistency and validate at open time, not mmap time. That violates the expected semantics of the 'noac' mount option. Trond -- 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/