Re: [nfsv4] More layout stuff: layout return on close
<david.noveck@emc.com> Thu, 25 November 2010 21:11 UTC
Return-Path: <david.noveck@emc.com>
X-Original-To: nfsv4@core3.amsl.com
Delivered-To: nfsv4@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 0516D28C0CE for <nfsv4@core3.amsl.com>; Thu, 25 Nov 2010 13:11:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level:
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fl5yBm30n5Ah for <nfsv4@core3.amsl.com>; Thu, 25 Nov 2010 13:10:59 -0800 (PST)
Received: from mexforward.lss.emc.com (mexforward.lss.emc.com [128.222.32.20]) by core3.amsl.com (Postfix) with ESMTP id C664E28C0FE for <nfsv4@ietf.org>; Thu, 25 Nov 2010 13:10:54 -0800 (PST)
Received: from hop04-l1d11-si02.isus.emc.com (HOP04-L1D11-SI02.isus.emc.com [10.254.111.55]) by mexforward.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id oAPLBt4S031966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 25 Nov 2010 16:11:56 -0500
Received: from mailhub.lss.emc.com (mailhub.lss.emc.com [10.254.221.253]) by hop04-l1d11-si02.isus.emc.com (RSA Interceptor); Thu, 25 Nov 2010 16:11:47 -0500
Received: from corpussmtp4.corp.emc.com (corpussmtp4.corp.emc.com [10.254.169.197]) by mailhub.lss.emc.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id oAPLBIYn016306; Thu, 25 Nov 2010 16:11:22 -0500
Received: from CORPUSMX50A.corp.emc.com ([128.221.62.43]) by corpussmtp4.corp.emc.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 25 Nov 2010 16:11:22 -0500
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Thu, 25 Nov 2010 16:11:20 -0500
Message-ID: <BF3BB6D12298F54B89C8DCC1E4073D8002A5F2BC@CORPUSMX50A.corp.emc.com>
In-Reply-To: <1290717746.2911.22.camel@heimdal.trondhjem.org>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [nfsv4] More layout stuff: layout return on close
Thread-Index: AcuM4Va59vzgYiRCSqyaIUXDCBuTfgAA2NCw
References: <1290552459.30508.4.camel@heimdal.trondhjem.org><4CECC382.5020207@panasas.com> <4CECE104.5080009@desy.de><1290610592.3234.20.camel@heimdal.trondhjem.org><4CEE283D.5040903@desy.de><1290692948.2911.7.camel@heimdal.trondhjem.org><4CEE8AA9.1030109@desy.de><BF3BB6D12298F54B89C8DCC1E4073D8002A5F2B6@CORPUSMX50A.corp.emc.com><op.vmqswmrhrwwil4@sfaibish1.corp.emc.com><1290716130.2911.14.camel@heimdal.trondhjem.org><op.vmqt16uhrwwil4@sfaibish1.corp.emc.com> <1290717746.2911.22.camel@heimdal.trondhjem.org>
From: david.noveck@emc.com
To: Trond.Myklebust@netapp.com, sfaibish@popimap.lss.emc.com
X-OriginalArrivalTime: 25 Nov 2010 21:11:22.0444 (UTC) FILETIME=[4FCD38C0:01CB8CE5]
X-EMM-MHVC: 1
X-EMM-MFVC: 1
Cc: nfsv4@ietf.org
Subject: Re: [nfsv4] More layout stuff: layout return on close
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/nfsv4>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Nov 2010 21:11:07 -0000
The difference is that I made that explicit in my text. I'm willing to change "SHOULD" to "should" if that matches what the spec says if the LAYOUTRETURN actually were done. But I think Trond is right about the basic point that these are fundamentally the same issue as regards the difficulty of server checking, and that that is true without regard to the explicitness (or not) of the return. -----Original Message----- From: nfsv4-bounces@ietf.org [mailto:nfsv4-bounces@ietf.org] On Behalf Of Trond Myklebust Sent: Thursday, November 25, 2010 3:42 PM To: faibish, sorin Cc: nfsv4@ietf.org Subject: Re: [nfsv4] More layout stuff: layout return on close On Thu, 2010-11-25 at 15:33 -0500, Sorin Faibish wrote: > On Thu, 25 Nov 2010 15:15:30 -0500, Trond Myklebust > <Trond.Myklebust@netapp.com> wrote: > > > On Thu, 2010-11-25 at 15:08 -0500, Sorin Faibish wrote: > >> On Thu, 25 Nov 2010 13:56:19 -0500, <david.noveck@emc.com> wrote: > >> > >> > The text says it is a "directive". Unfortunately, it does not clarify > >> > that with a "MAY", "SHOULD", or "MUST". > >> > > >> > Still a "directive" seems quite a way from a "hint". > >> > > >> > The problem here is that the "MUST" which follows this is about the > >> > server, not the client. Saying the server "MUST" recall, does suggest > >> > that the "directive" for the client is not all that forceful, and you > >> > could go all the way down to "hint" I suppose. It's more a hint of > >> the > >> > form "Why don't you return that segment (hint, hint), since if you > >> don't > >> > I'm going to have recall it anyway." If it is a hint, it is not a > >> hint > >> > suggesting that you could somehow keep the layout segment. > >> > > >> > The question I think we have is whether we can justifiably address > >> this > >> > via the errata mechanism. Are we fixing a mistake, rather than just > >> > improving the protocol, which would be a nice thing for v4.2, and not > >> > something for v4.1. > >> > > >> > I would argue that that the "MUST" is inconsistent with the forgetful > >> > client model which the spec allows and so is we can treat this as a > >> > mistake. Also, we are not making any existing client or server > >> > non-compliant. > >> > > >> > My understanding of the correction: > >> > > >> > Flag still described as a "directive". > >> > > >> > Follow-up is that client MUST forget (i.e. no longer use) the > >> > segments > >> > marked that way. Client MAY advise server of their non-use, by > >> > LAYOUTRETURN > >> > but server has enough information to infer layout segment non-use > >> > without > >> > that. > >> > > >> > Server MUST assume such layout segments are not to be further > >> used > >> > when > >> > CLOSE occurs. > >> > Server MAY recall such layout segments if they have not been > >> > returned, but > >> > there is no requirement that he do so. He SHOULD ensure that if > >> > they are > >> > used subsequently by the client, this is treated as an error. > >> I am not confortable with the posibility of an "error" such as the > >> client will use the segments following a CLOSE. How would the server > >> know > >> that the clients used the segments. You do not imply that the server has > >> to check anything. > > > > How is this any different from the client using the segments following a > > LAYOUTRETURN? > The file is still OPEN so the use a returned layout can be an error of > the client that the server can detect while access of a CLOSED file is more > difficult to detect as the server doesn't keep track of any activity of > the client on that file. There sre no layouts that the server sent to the > client. Otherwise the server has to keep track of layouts of closed files? > Ough.. Again, how is this any different from having the client first do a LAYOUTRETURN, CLOSE and then continuing to use the layout segments that it just returned? My point is that if you have no mechanism for detecting and fencing off rogue clients, then this errata changes nothing: a client that wants to reuse a layout that is no longer valid is going to be able do so irrespectively of whether or not it actually needs to send a layoutreturn before close. Trond -- Trond Myklebust Linux NFS client maintainer NetApp Trond.Myklebust@netapp.com www.netapp.com _______________________________________________ nfsv4 mailing list nfsv4@ietf.org https://www.ietf.org/mailman/listinfo/nfsv4
- [nfsv4] More layout stuff: layout return on close Trond Myklebust
- Re: [nfsv4] More layout stuff: layout return on c… Benny Halevy
- Re: [nfsv4] More layout stuff: layout return on c… Tigran Mkrtchyan
- Re: [nfsv4] More layout stuff: layout return on c… Benny Halevy
- Re: [nfsv4] More layout stuff: layout return on c… Trond Myklebust
- Re: [nfsv4] More layout stuff: layout return on c… Tigran Mkrtchyan
- Re: [nfsv4] More layout stuff: layout return on c… Trond Myklebust
- Re: [nfsv4] More layout stuff: layout return on c… Tigran Mkrtchyan
- Re: [nfsv4] More layout stuff: layout return on c… david.noveck
- Re: [nfsv4] More layout stuff: layout return on c… Trond Myklebust
- Re: [nfsv4] More layout stuff: layout return on c… Sorin Faibish
- Re: [nfsv4] More layout stuff: layout return on c… Trond Myklebust
- Re: [nfsv4] More layout stuff: layout return on c… Sorin Faibish
- Re: [nfsv4] More layout stuff: layout return on c… david.noveck
- Re: [nfsv4] More layout stuff: layout return on c… Trond Myklebust
- Re: [nfsv4] More layout stuff: layout return on c… david.noveck
- Re: [nfsv4] More layout stuff: layout return on c… Benny Halevy
- Re: [nfsv4] More layout stuff: layout return on c… Trond Myklebust
- Re: [nfsv4] More layout stuff: layout return on c… david.noveck
- Re: [nfsv4] More layout stuff: layout return on c… Trond Myklebust
- Re: [nfsv4] More layout stuff: layout return on c… david.noveck
- Re: [nfsv4] More layout stuff: layout return on c… Trond Myklebust
- Re: [nfsv4] More layout stuff: layout return on c… david.noveck
- Re: [nfsv4] More layout stuff: layout return on c… Trond Myklebust
- Re: [nfsv4] More layout stuff: layout return on c… Benny Halevy
- Re: [nfsv4] More layout stuff: layout return on c… Trond Myklebust
- Re: [nfsv4] More layout stuff: layout return on c… Benny Halevy
- Re: [nfsv4] More layout stuff: layout return on c… Benny Halevy
- Re: [nfsv4] More layout stuff: layout return on c… Trond Myklebust
- Re: [nfsv4] More layout stuff: layout return on c… Trond Myklebust
- Re: [nfsv4] More layout stuff: layout return on c… Fred Isaman
- Re: [nfsv4] More layout stuff: layout return on c… Trond Myklebust
- Re: [nfsv4] More layout stuff: layout return on c… david.noveck
- Re: [nfsv4] More layout stuff: layout return on c… Spencer Shepler
- Re: [nfsv4] More layout stuff: layout return on c… Trond Myklebust
- Re: [nfsv4] More layout stuff: layout return on c… Benny Halevy
- Re: [nfsv4] More layout stuff: layout return on c… Benny Halevy
- Re: [nfsv4] More layout stuff: layout return on c… Trond Myklebust
- Re: [nfsv4] More layout stuff: layout return on c… Benny Halevy
- Re: [nfsv4] More layout stuff: layout return on c… Trond Myklebust