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

Trond Myklebust <Trond.Myklebust@netapp.com> Wed, 24 November 2010 13:55 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 1BA333A6A50 for <nfsv4@core3.amsl.com>; Wed, 24 Nov 2010 05:55:22 -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 72Vr2XZ9IEsh for <nfsv4@core3.amsl.com>; Wed, 24 Nov 2010 05:55:21 -0800 (PST)
Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by core3.amsl.com (Postfix) with ESMTP id 10E523A6A4F for <nfsv4@ietf.org>; Wed, 24 Nov 2010 05:55:20 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.59,248,1288594800"; d="scan'208";a="486553658"
Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 24 Nov 2010 05:56:18 -0800
Received: from svlrsexc2-prd.hq.netapp.com (svlrsexc2-prd.hq.netapp.com [10.57.115.31]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id oAODuIng029957; Wed, 24 Nov 2010 05:56:18 -0800 (PST)
Received: from SACMVEXC2-PRD.hq.netapp.com ([10.99.115.17]) by svlrsexc2-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 24 Nov 2010 05:56:18 -0800
Received: from 10.58.53.62 ([10.58.53.62]) by SACMVEXC2-PRD.hq.netapp.com ([10.99.115.16]) with Microsoft Exchange Server HTTP-DAV ; Wed, 24 Nov 2010 13:56:17 +0000
Received: from heimdal.trondhjem.org by SACMVEXC2-PRD.hq.netapp.com; 24 Nov 2010 08:56:17 -0500
From: Trond Myklebust <Trond.Myklebust@netapp.com>
To: Benny Halevy <bhalevy@panasas.com>
In-Reply-To: <4CECC382.5020207@panasas.com>
References: <1290552459.30508.4.camel@heimdal.trondhjem.org> <4CECC382.5020207@panasas.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Organization: NetApp Inc
Date: Wed, 24 Nov 2010 08:56:17 -0500
Message-ID: <1290606977.3234.5.camel@heimdal.trondhjem.org>
Mime-Version: 1.0
X-Mailer: Evolution 2.32.1 (2.32.1-1.fc14)
X-OriginalArrivalTime: 24 Nov 2010 13:56:18.0519 (UTC) FILETIME=[5E3C9E70:01CB8BDF]
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: Wed, 24 Nov 2010 13:55:22 -0000

On Wed, 2010-11-24 at 09:49 +0200, Benny Halevy wrote:
> On 2010-11-24 00:47, Trond Myklebust wrote:
> > Another conflict between the forgetful pNFS client model and RFC5661.
> > 
> > Currently, section 18.43.3 states that:
> > 
> >         "The logr_return_on_close result field is a directive to return
> >         the layout before closing the file.  When the metadata server
> >         sets this return value to TRUE, it MUST be prepared to recall
> >         the layout in the case in which the client fails to return the
> >         layout before close."
> > 
> > The point is that the client is fully entitled by section 12.5.5.1 to
> > forget that it holds a layout for this file altogether. With this in
> > mind, the requirement in 18.43.3 appears excessively bureaucratic:
> >       * the server _knows_ that the client is required to return layouts
> >         on close,
> >       * it _knows_ that the client may have forgotten it holds layouts
> > yet it is required to go through the motions of issuing a layout recall?
> > 
> > Can anyone think of a reason why we should not just allow the server to
> > assume the client has forgotten all layouts when it issues the close in
> > apparent violation of the 'return on close' here?
> 
> Let me rephrase that to see if I understood your suggestion correctly.
> You're basically suggesting additional semantics for CLOSE that would imply
> return of the whole layout for the file, when any layout segments gotten
> with a stateid derived from the respective open stateid that stated
> return_on_close==true.
> 
> I like that though I think that the semantics can be tuned down a notch to just
> those layout segments marked with return_on_close.  This can be useful in
> case the server, for example, requests return_on_close only for RW layouts
> while the client can keep the READ layout across CLOSE.

I agree. It should only apply to the return-on-close segments. However
if the server has labeled all segments with return-on-close, then that
would imply the entire layout has been returned.

Note that CLOSE in this case may also mean DELEGRETURN.

> What I really don't want is to define this non-definitively so to leave
> it up to the client to forget and up to the server to assume the client
> forgot the layout.

ACK.

-- 
Trond Myklebust
Linux NFS client maintainer

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