From: "Robert Rappaport" Subject: Re: [PATCH] locks: provide a file lease method enabling cluster-coherent leases Date: Wed, 6 Jun 2007 14:43:22 -0400 Message-ID: References: <1181086828.6108.11.camel@heimdal.trondhjem.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1668745151==" Cc: "J. Bruce Fields" , linux-fsdevel@vger.kernel.org, David Teigland , nfs@lists.sourceforge.net, Marc Eshel To: "Trond Myklebust" Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1Hw0TZ-0001bZ-Cc for nfs@lists.sourceforge.net; Wed, 06 Jun 2007 11:43:21 -0700 Received: from hu-out-0506.google.com ([72.14.214.233]) by mail.sourceforge.net with esmtp (Exim 4.44) id 1Hw0Tc-0001Cx-14 for nfs@lists.sourceforge.net; Wed, 06 Jun 2007 11:43:24 -0700 Received: by hu-out-0506.google.com with SMTP id 28so137164hub for ; Wed, 06 Jun 2007 11:43:22 -0700 (PDT) In-Reply-To: <1181086828.6108.11.camel@heimdal.trondhjem.org> List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net --===============1668745151== Content-Type: multipart/alternative; boundary="----=_Part_28479_22607026.1181155402125" ------=_Part_28479_22607026.1181155402125 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline It appears that there is agreement that the functionality currently implemented in __setlease() should be exported, even though the exported name may not be __setlease(). That is just fine with me. The question that I have now is when do you think it likely that these changes get into the released code? I hope that the plan is to get it there fairly soon. - Robert Rappaport On 6/5/07, Trond Myklebust wrote: > > On Tue, 2007-06-05 at 15:56 -0700, Marc Eshel wrote: > > Hi Bruce, > > The file system does need to keep the local state up to date, like it > does > > with posix locks, so it might need to call __setlease(). The why we had > it > > before was that the call to the file system was done from outside of > > setlease() and the file system was able to call setlease() which is > > exported. Now that the call to the fs moved into setlease() the file > > system can not call it anymore so one possible solution would be to > export > > __setlease(). > > Marc. > > Please just make a vfs_setlease() which has the ability to call down > into the filesystem and leave the exported setlease() as a generic > method that can continue to be called by the filesystems themselves (and > acts as a fallback for vfs_setlease()). That would be closer to the VFS > naming conventions. > > Trond > > ------=_Part_28479_22607026.1181155402125 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline It appears that there is agreement that the functionality currently implemented in __setlease() should be exported, even though the exported name may not be __setlease().

That is just fine with me.

The question that I have now is when do you think it likely that these changes get into the released code?  I hope that the plan is to get it there fairly soon.

- Robert Rappaport

On 6/5/07, Trond Myklebust <trond.myklebust@fys.uio.no> wrote:
On Tue, 2007-06-05 at 15:56 -0700, Marc Eshel wrote:
> Hi Bruce,
> The file system does need to keep the local state up to date, like it does
> with posix locks, so it might need to call __setlease(). The why we had it
> before was that the call to the file system was done from outside of
> setlease() and the file system was able to call setlease() which is
> exported. Now that the call to the fs  moved into setlease() the file
> system can not call it anymore so one possible solution would be to export
> __setlease().
> Marc.

Please just make a vfs_setlease() which has the ability to call down
into the filesystem and leave the exported setlease() as a generic
method that can continue to be called by the filesystems themselves (and
acts as a fallback for vfs_setlease()). That would be closer to the VFS
naming conventions.

Trond


------=_Part_28479_22607026.1181155402125-- --===============1668745151== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --===============1668745151== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs --===============1668745151==--