From: Benjamin Coddington <bcodding@redhat.com>
To: Trond Myklebust <trondmy@kernel.org>,
Anna Schumaker <anna@kernel.org>,
Jeff Layton <jlayton@kernel.org>
Cc: linux-nfs@vger.kernel.org
Subject: [PATCH v2 0/1] Allow FREE_STATEID to free delegations
Date: Thu, 1 May 2025 08:29:41 -0400 [thread overview]
Message-ID: <cover.1746102154.git.bcodding@redhat.com> (raw)
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(-)
--
2.47.0
next reply other threads:[~2025-05-01 12:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-01 12:29 Benjamin Coddington [this message]
2025-05-01 12:29 ` [PATCH v2 1/1] NFSv4: Allow FREE_STATEID to clean up delegations Benjamin Coddington
2025-05-01 15:03 ` Jeff Layton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1746102154.git.bcodding@redhat.com \
--to=bcodding@redhat.com \
--cc=anna@kernel.org \
--cc=jlayton@kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=trondmy@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox