Re: [nfsv4] More layout stuff: layout return on close

Trond Myklebust <Trond.Myklebust@netapp.com> Tue, 30 November 2010 22:13 UTC

Return-Path: <Trond.Myklebust@netapp.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 87F383A6C43 for <nfsv4@core3.amsl.com>; Tue, 30 Nov 2010 14:13:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
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 naPNz6GpJjmh for <nfsv4@core3.amsl.com>; Tue, 30 Nov 2010 14:13:48 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by core3.amsl.com (Postfix) with ESMTP id 7C9723A6C3A for <nfsv4@ietf.org>; Tue, 30 Nov 2010 14:13:48 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.59,282,1288594800"; d="scan'208";a="489181341"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 30 Nov 2010 14:15:00 -0800
Received: from sacrsexc1-prd.hq.netapp.com (sacrsexc1-prd.hq.netapp.com [10.99.115.27]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id oAUMF0LB000714; Tue, 30 Nov 2010 14:15:00 -0800 (PST)
Received: from SACMVEXC2-PRD.hq.netapp.com ([10.99.115.17]) by sacrsexc1-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 30 Nov 2010 14:15:00 -0800
Received: from 10.58.57.111 ([10.58.57.111]) by SACMVEXC2-PRD.hq.netapp.com ([10.99.115.16]) with Microsoft Exchange Server HTTP-DAV ; Tue, 30 Nov 2010 22:14:55 +0000
Received: from heimdal.trondhjem.org by SACMVEXC2-PRD.hq.netapp.com; 30 Nov 2010 17:14:54 -0500
From: Trond Myklebust <Trond.Myklebust@netapp.com>
To: Benny Halevy <bhalevy@panasas.com>
In-Reply-To: <4CF523D8.4040206@panasas.com>
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> <4CF25270.5050609@panasas.com> <1290968847.12027.6.camel@heimdal.trondhjem.org> <BF3BB6D12298F54B89C8DCC1E4073D8002A5F323@CORPUSMX50A.corp.emc.com> <1291045387.12784.7.camel@heimdal.trondhjem.org> <BF3BB6D12298F54B89C8DCC1E4073D8002A5F42F@CORPUSMX50A.corp.emc.com> <1291053460.12784.14.camel@heimdal.trondhjem.org> <BF3BB6D12298F54B89C8DCC1E4073D8002A5F455@CORPUSMX50A.corp.emc.com> <1291056819.12784.30.camel@heimdal.trondhjem.org> <4CF523D8.4040206@panasas.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Organization: NetApp Inc
Date: Tue, 30 Nov 2010 17:14:53 -0500
Message-ID: <1291155293.2998.33.camel@heimdal.trondhjem.org>
Mime-Version: 1.0
X-Mailer: Evolution 2.32.1 (2.32.1-1.fc14)
X-OriginalArrivalTime: 30 Nov 2010 22:15:00.0300 (UTC) FILETIME=[077C90C0:01CB90DC]
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: Tue, 30 Nov 2010 22:13:49 -0000

On Tue, 2010-11-30 at 18:18 +0200, Benny Halevy wrote:
> On 2010-11-29 20:53, Trond Myklebust wrote:
> > On Mon, 2010-11-29 at 13:27 -0500, david.noveck@emc.com wrote:
> >> There are three possibilities that occur to me.  If there are more, I'd
> >> prefer not to know :-)
> >>
> >> Stateid-that-created the layout:  I take your point about usefulness,
> >> and the text doesn't say anything specifically that says this is right.
> >> On the other hand, if it is not used for this (determining when to
> >> return return-on-close segments), what is it used for?  It seems like it
> >> should be used for something, if it there.
> >>
> >> Any-close: Not sure this is very useful, but if you were just trying to
> >> read what the spec says, it seems like that is what the spec says.
> >> There are lots of places where you would expect it to say "last close"
> >> if that was what was meant, but I don't see them.  Does it say this
> >> anywhere?
> >>
> >> Last-close: This seems the most useful choice but it isn't what the spec
> >> says, so if we can all agree that this is what it should say, maybe the
> >> errata mechanism would be used to fix this as well.
> > 
> > Yes, it does appear that a spec clarification is needed here too.
> > 
> >> Also, it occurs to me that delegation adds another level
> >> complexity/nightmare and a delegation stateid can be passed just as a
> >> open or lock stateid can.  One purpose of the delegation is that
> >> opens/closes on the client, as long as there is a delegation can be
> >> hidden from the server, so I guess this means that the responsibility
> >> for effecting a last-close return, when a delegation is present is for
> >> the client to do by means of LAYOUTRETURN to the server.  Given that the
> >> client is in control, he knows the ordering and doesn't have to be
> >> conservative on open/close ordering.
> > 
> > Doesn't have to be, but should be allowed to be.
> > 
> > I'm gunning for a client position where we don't have to add any extra
> > serialisation between LAYOUTGET and LAYOUTRETURN, but can rely on the
> > forgetful model to let us drop the layout whenever we please.
> > 
> 
> We need to separate between the layout and the layout stateid.
> The server doesn't care weather the client uses the layout it was given or not.
> That's up to the client.  However, the server and client must agree on
> the layout stateid.

Yes. Why do they not?

> > In such a scenario, the automatic last-close return is actually quite
> > useful, since it allows the server to be forgetful too...
> > 
> 
> What do you mean by that?

I mean that the server does not have to wait for and/or recall those
layouts that are close-on-return if the client fails to send
LAYOUTRETURNs before CLOSE. It just forgets them.

-- 
Trond Myklebust
Linux NFS client maintainer

NetApp
Trond.Myklebust@netapp.com
www.netapp.com