All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] nfsd: add CB_NOTIFY_LOCK support
@ 2016-08-02 18:15 Jeff Layton
  2016-08-02 18:15 ` [RFC PATCH 1/4] nfsd: plumb in a CB_NOTIFY_LOCK operation Jeff Layton
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Jeff Layton @ 2016-08-02 18:15 UTC (permalink / raw)
  To: linux-nfs; +Cc: bfields

A small set of patches that should add CB_NOTIFY_LOCK support for knfsd.
The basic idea is to use FL_SLEEP to set blocks when a lock is contended,
and then queue a callback to issue a CB_NOTIFY_LOCK in the lm_notify op.

Per the RFC, we take no steps to reserve the lock for the client. This is
a simple notification to tell the client that it may want to poll for it
again.

It also takes steps to clean out old, abandoned blocks when the client
loses interest in obtaining the lock.

Only lightly tested so far, but it seems to do the right thing.
The client-side piece is the next step.

Jeff Layton (4):
  nfsd: plumb in a CB_NOTIFY_LOCK operation
  nfsd: have nfsd4_lock use blocking locks for v4.1+ locks
  nfsd: add a LRU list for blocked locks
  nfsd: set the MAY_NOTIFY_LOCK flag in OPEN replies

 fs/nfsd/netns.h           |   1 +
 fs/nfsd/nfs4callback.c    |  57 +++++++++++++
 fs/nfsd/nfs4state.c       | 209 ++++++++++++++++++++++++++++++++++++++++++----
 fs/nfsd/state.h           |  21 ++++-
 fs/nfsd/xdr4cb.h          |   9 ++
 include/uapi/linux/nfs4.h |   5 +-
 6 files changed, 281 insertions(+), 21 deletions(-)

-- 
2.7.4


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

end of thread, other threads:[~2016-08-02 21:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-02 18:15 [RFC PATCH 0/4] nfsd: add CB_NOTIFY_LOCK support Jeff Layton
2016-08-02 18:15 ` [RFC PATCH 1/4] nfsd: plumb in a CB_NOTIFY_LOCK operation Jeff Layton
2016-08-02 18:15 ` [RFC PATCH 2/4] nfsd: have nfsd4_lock use blocking locks for v4.1+ locks Jeff Layton
2016-08-02 18:45   ` Jeff Layton
2016-08-02 20:43   ` J. Bruce Fields
2016-08-02 21:28     ` Jeff Layton
2016-08-02 18:15 ` [RFC PATCH 3/4] nfsd: add a LRU list for blocked locks Jeff Layton
2016-08-02 18:15 ` [RFC PATCH 4/4] nfsd: set the MAY_NOTIFY_LOCK flag in OPEN replies Jeff Layton
2016-08-02 20:38 ` [RFC PATCH 0/4] nfsd: add CB_NOTIFY_LOCK support J. Bruce Fields
2016-08-02 21:25   ` Jeff Layton

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.