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

Benny Halevy <bhalevy@panasas.com> Wed, 24 November 2010 07:48 UTC

Return-Path: <bhalevy@panasas.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 DBA373A6993 for <nfsv4@core3.amsl.com>; Tue, 23 Nov 2010 23:48:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.526
X-Spam-Level:
X-Spam-Status: No, score=-3.526 tagged_above=-999 required=5 tests=[AWL=-1.261, BAYES_00=-2.599, IP_NOT_FRIENDLY=0.334]
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 Y5xTA2xvbtmv for <nfsv4@core3.amsl.com>; Tue, 23 Nov 2010 23:48:28 -0800 (PST)
Received: from daytona.panasas.com (daytona.panasas.com [67.152.220.89]) by core3.amsl.com (Postfix) with ESMTP id 16DDB3A6989 for <nfsv4@ietf.org>; Tue, 23 Nov 2010 23:48:27 -0800 (PST)
Received: from fs1.bhalevy.com ([172.17.33.15]) by daytona.panasas.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 24 Nov 2010 02:49:24 -0500
Message-ID: <4CECC382.5020207@panasas.com>
Date: Wed, 24 Nov 2010 09:49:22 +0200
From: Benny Halevy <bhalevy@panasas.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Fedora/3.1.6-1.fc13 Thunderbird/3.1.6
MIME-Version: 1.0
To: Trond Myklebust <Trond.Myklebust@netapp.com>
References: <1290552459.30508.4.camel@heimdal.trondhjem.org>
In-Reply-To: <1290552459.30508.4.camel@heimdal.trondhjem.org>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 24 Nov 2010 07:49:24.0278 (UTC) FILETIME=[1CBA0560:01CB8BAC]
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 07:48:28 -0000

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.

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.

Benny

> 
> Cheers
>   Trond
>