linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Fix up delegation management
@ 2020-01-27 14:58 Trond Myklebust
  2020-01-27 14:58 ` [PATCH 1/5] NFSv4: nfs_inode_evict_delegation() should set NFS_DELEGATION_RETURNING Trond Myklebust
  0 siblings, 1 reply; 6+ messages in thread
From: Trond Myklebust @ 2020-01-27 14:58 UTC (permalink / raw)
  To: Anna Schumaker; +Cc: linux-nfs

Delegations allow the client to cache various objects aggressively,
however they can also be a source of scalability issues on the server
if not returned when not it use.
The following patchset allows the client to set a limit on the number
of delegations that it holds. Once it hits that limit, it starts to
return the delegations on close in order to avoid swamping the server
with state.

Trond Myklebust (5):
  NFSv4: nfs_inode_evict_delegation() should set
    NFS_DELEGATION_RETURNING
  NFS: Clear NFS_DELEGATION_RETURN_IF_CLOSED when the delegation is
    returned
  NFSv4: Try to return the delegation immediately when marked for return
    on close
  NFSv4: Add accounting for the number of active delegations held
  NFSv4: Limit the total number of cached delegations

 fs/nfs/delegation.c | 80 +++++++++++++++++++++++++++++++++++++--------
 fs/nfs/delegation.h |  1 +
 fs/nfs/nfs4state.c  |  1 +
 3 files changed, 69 insertions(+), 13 deletions(-)

-- 
2.24.1


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

end of thread, other threads:[~2020-01-27 15:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-27 14:58 [PATCH 0/5] Fix up delegation management Trond Myklebust
2020-01-27 14:58 ` [PATCH 1/5] NFSv4: nfs_inode_evict_delegation() should set NFS_DELEGATION_RETURNING Trond Myklebust
2020-01-27 14:58   ` [PATCH 2/5] NFS: Clear NFS_DELEGATION_RETURN_IF_CLOSED when the delegation is returned Trond Myklebust
2020-01-27 14:58     ` [PATCH 3/5] NFSv4: Try to return the delegation immediately when marked for return on close Trond Myklebust
2020-01-27 14:58       ` [PATCH 4/5] NFSv4: Add accounting for the number of active delegations held Trond Myklebust
2020-01-27 14:58         ` [PATCH 5/5] NFSv4: Limit the total number of cached delegations Trond Myklebust

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