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

Benny Halevy <bhalevy@panasas.com> Wed, 24 November 2010 10:14 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 D7BCC28C12E for <nfsv4@core3.amsl.com>; Wed, 24 Nov 2010 02:14:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.386
X-Spam-Level:
X-Spam-Status: No, score=-3.386 tagged_above=-999 required=5 tests=[AWL=-1.121, 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 ZQdZKte+taKU for <nfsv4@core3.amsl.com>; Wed, 24 Nov 2010 02:14:05 -0800 (PST)
Received: from daytona.panasas.com (daytona.panasas.com [67.152.220.89]) by core3.amsl.com (Postfix) with ESMTP id DDF6C3A6A24 for <nfsv4@ietf.org>; Wed, 24 Nov 2010 02:14:04 -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 05:15:03 -0500
Message-ID: <4CECE5A6.4090303@panasas.com>
Date: Wed, 24 Nov 2010 12:15:02 +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: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
References: <1290552459.30508.4.camel@heimdal.trondhjem.org> <4CECC382.5020207@panasas.com> <4CECE104.5080009@desy.de>
In-Reply-To: <4CECE104.5080009@desy.de>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 24 Nov 2010 10:15:03.0859 (UTC) FILETIME=[75EC4030:01CB8BC0]
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 10:14:06 -0000

On 2010-11-24 11:55, Tigran Mkrtchyan wrote:
> On 11/24/2010 08:49 AM, 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.
>>
>> 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.
>>
>>   
> 
> As a main reason why we have return_on_close in the spec I will allow me
> to comment.
>  
> We are in a quite weird situation here. From one side servers asks  a
> client to return
> layout on close, but from other side you have to keep track of the
> layout and recall it to
> ensure that the client will not use it any more.  I would love to see
> this part of the spec to
> be more deterministic. But it we change it not to be a more strong
> requirements, then
> some of the current clients will become not complaint with the spec. Are
> we ok with that?
> And of course I have to change layout handling in our server we rely on
> layoutreturn. Which
> is not a big change (I think). BTW, is there any other server uses
> return_on_close ?

Yes. Panasas uses return_on_close.

Benny

> 
> Tigran.
>> Benny
>>
>>   
>>> Cheers
>>>   Trond
>>>
>>>     
>> _______________________________________________
>> nfsv4 mailing list
>> nfsv4@ietf.org
>> https://www.ietf.org/mailman/listinfo/nfsv4
>>   
> 
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4