linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "William A.(Andy) Adamson" <andros@citi.umich.edu>
To: Jamie Lokier <jamie@shareable.org>
Cc: "William A.(Andy) Adamson" <andros@citi.umich.edu>,
	linux-fsdevel@vger.kernel.org, andros@citi.umich.edu
Subject: Re: file leases
Date: Mon, 20 Sep 2004 16:34:30 -0400	[thread overview]
Message-ID: <20040920203430.6D5761BBA3@citi.umich.edu> (raw)
In-Reply-To: Your message of "Mon, 20 Sep 2004 21:27:33 BST." <20040920202733.GF28786@mail.shareable.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
> 



  reply	other threads:[~2004-09-20 20:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-20 20:21 PATCH [0/10] lease interfaces for version 4 NFSD William A.(Andy) Adamson
2004-09-20 20:27 ` file leases Jamie Lokier
2004-09-20 20:34   ` William A.(Andy) Adamson [this message]
2004-09-21  3:21     ` Stephen Rothwell
2004-09-21  8:40       ` Jamie Lokier
2004-09-21 12:16         ` William A.(Andy) Adamson
2004-09-21 12:44           ` Jamie Lokier
2004-09-21 20:30             ` Jeremy Allison
2004-09-22 11:32               ` Jamie Lokier
2004-09-22 12:41                 ` Stephen Rothwell
2004-09-22 13:36                   ` Jamie Lokier
2004-09-22 18:59                 ` Jeremy Allison
2004-09-22 21:43                   ` Jamie Lokier
  -- strict thread matches above, loose matches on Subject: below --
2004-09-21 15:07 William A.(Andy) Adamson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040920203430.6D5761BBA3@citi.umich.edu \
    --to=andros@citi.umich.edu \
    --cc=jamie@shareable.org \
    --cc=linux-fsdevel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).