linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PATCH [0/10] lease interfaces for version 4 NFSD
@ 2004-09-20 20:21 William A.(Andy) Adamson
  2004-09-20 20:27 ` file leases Jamie Lokier
  0 siblings, 1 reply; 14+ messages in thread
From: William A.(Andy) Adamson @ 2004-09-20 20:21 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: andros

The following patches provide an interface to the lease subsystem in the 
current VFS locking code.

The version 4 nfsd delegation implementation uses leases to co-ordinate 
behavior between local, samba, and nfs access.

The main design points are

	- Seperate the file_lock processing from the file descriptor processing in 
fcntl_setlease.
	- New non-file descriptor interface to setlease
	- Use new lock manager callbacks to allow nfsd to create, break, and release 
leases.
	- Provide default lock manager callbacks for fcntl_setlease

-->Andy Adamson


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: file leases
@ 2004-09-21 15:07 William A.(Andy) Adamson
  0 siblings, 0 replies; 14+ messages in thread
From: William A.(Andy) Adamson @ 2004-09-21 15:07 UTC (permalink / raw)
  To: jamie; +Cc: andros, sfr, linux-fsdevel


ah. i have performed similar tests with nfsd and delegations. i'll open a file 
for READ locally on a version 4 nfsd exported portion of the file system, and 
request a lease via fcntl_setlease() setting up a signal handler to handle the 
break_lease callback. then, i'll open the same file for WRITE from an nfs 
version 4 client. the lease on the local file is broken within 1-2 seconds, 
and then nfs client WRITE is serviced. if you want, i can send the source to 
the test programs to set a lease.

-->Andy


--------jamie@shareable.org said -----------
Eh?  There's only one client, and it's idle.  Presumably it's holding
an oplock.

When I want to edit a file directly on the server, opening for write
stalls for a long time.  Presumably the lease causes Samba to send a
break_lease to the _one_ client.  Being an idle client that's not
holding the file open, it should respond immediately to break_lease,
and then Samba should let me open the file locally.

That's how leases are supposed to work, but something in that whole
arrangement isn't working properly.  Samba is 3.0.6-r3, kernel is
2.6.8 (both gentoo versions).




^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2004-09-22 21:43 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).