Skip to content

Allow FREE_STATEID to free delegations

Benjamin Coddington linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 1 replyIn review
  2. v12 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1NFSv4: Allow FREE_STATEID to clean up delegationsfs/nfs/delegation.c fs/nfs/nfs4_fs.h fs/nfs/nfs4proc.c +1 more+26 -151 reply

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchJeff Layton
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/1] Allow FREE_STATEID to free delegations

A problem observed for some clients is that the list of nfs_server->delegations can grow unweildy, leading to the clients spinning in tight loops walking across delegations that have been marked revoked. These two patches attempt to solve that problem by using the result of FREE_STATEID to clean up the list of delegations which keeps that list pruned to an operable size.

Changes on v2:
- dropped the first patch which was unnecessary
- add the FREED_STATEID case to nfs41_test_and_free_expired()

Benjamin Coddington (1):
NFSv4: Allow FREE_STATEID to clean up delegations

 fs/nfs/delegation.c  | 25 ++++++++++++++++++-------
 fs/nfs/nfs4_fs.h     |  3 +--
 fs/nfs/nfs4proc.c    | 12 ++++++------
 include/linux/nfs4.h |  1 +
 4 files changed, 26 insertions(+), 15 deletions(-)
Signature · 1 line
2.47.0