From mboxrd@z Thu Jan 1 00:00:00 1970 From: "William A.(Andy) Adamson" Subject: Re: file leases Date: Mon, 20 Sep 2004 16:34:30 -0400 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20040920203430.6D5761BBA3@citi.umich.edu> References: <20040920202733.GF28786@mail.shareable.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "William A.(Andy) Adamson" , linux-fsdevel@vger.kernel.org, andros@citi.umich.edu Return-path: Received: from citi.umich.edu ([141.211.133.111]:16213 "EHLO citi.umich.edu") by vger.kernel.org with ESMTP id S267333AbUITUeb (ORCPT ); Mon, 20 Sep 2004 16:34:31 -0400 To: Jamie Lokier In-reply-to: Your message of "Mon, 20 Sep 2004 21:27:33 BST." <20040920202733.GF28786@mail.shareable.org> List-Id: linux-fsdevel.vger.kernel.org > William A.(Andy) Adamson wrote: > > The version 4 nfsd delegation implementation uses leases to co-ordinate > > behavior between local, samba, and nfs access. > > Are they working properly? in the testing that i have done, yes, they work. > > When I share a directory using Samba 3.0.6, sometimes local access to > a file stalls for a while - on the order of 10 seconds to open a file. if your open() is blocking (did not specify O_NONBLOCK) then break_lease will contact all other processes (samba clients) one at a time, and will not return until all have been contacted. this could take a while. > > It is very annoying, and I had to turn off oplocks in order to > reasonably edit files in a shared directory. I presume Samba > implements oplocks using leases, and that is the cause of local access > stalling. > > I wonder if leases aren't working as they should be, or if Samba isn't > using them properly. i haven't run the samba server. > > -- Jamie >