All of lore.kernel.org
 help / color / mirror / Atom feed
* lease/delegation/oplock semantics
@ 2011-06-10  0:09 ` J. Bruce Fields
  0 siblings, 0 replies; 19+ messages in thread
From: J. Bruce Fields @ 2011-06-10  0:09 UTC (permalink / raw)
  To: linux-nfs
  Cc: linux-fsdevel, samba-technical, Christoph Hellwig, Mimi Zohar,
	Eric Paris

Resending with some extra cc's, hope that's OK:

NFSv4 (along with, from what I'm told, Samba) has a problem with read
leases, which is that they are currently only broken on write opens,
whereas they should really be broken on any operation that changes an
inode's metadata or any of the links pointing to it.

Also, to break leases in a non-racy way it's not sufficient to have a
single break_lease() call from the vfs code; we also need to prevent
anyone from acquiring a new lease while the operation is still in
progress.

So here's one attempt to deal with those problems, by adding to the
inode a counter which is incremented whenever we start such an operation
and decremented when we finish it.

I only handle unlink; we'd also need to do link, rename, chown, and
chmod, at least.

Comments? Better ideas?

--b.

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

end of thread, other threads:[~2011-06-15 15:47 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-10  0:09 lease/delegation/oplock semantics J. Bruce Fields
2011-06-10  0:09 ` J. Bruce Fields
2011-06-10  0:10 ` [PATCH 1/2] locks: introduce i_blockleases to close lease races J. Bruce Fields
2011-06-10  0:11   ` [PATCH 2/2] locks: break lease on unlink J. Bruce Fields
2011-06-10  0:11     ` J. Bruce Fields
2011-06-10 20:24   ` [PATCH 1/2] locks: introduce i_blockleases to close lease races Mimi Zohar
2011-06-10 21:34     ` J. Bruce Fields
2011-06-12  4:08       ` J. Bruce Fields
2011-06-12 19:10         ` Mimi Zohar
2011-06-12 19:12           ` J. Bruce Fields
2011-06-12 20:54             ` Mimi Zohar
2011-06-12 20:54               ` Mimi Zohar
2011-06-13 12:19               ` J. Bruce Fields
2011-06-13 12:19                 ` J. Bruce Fields
2011-06-13 20:37                 ` Mimi Zohar
2011-06-13 20:37                   ` Mimi Zohar
2011-06-14  0:35                   ` J. Bruce Fields
2011-06-15 15:47                 ` J. Bruce Fields
2011-06-15 15:47                   ` J. Bruce Fields

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.