From: Benjamin Coddington <bcodding@redhat.com>
To: trond.myklebust@hammerspace.com, anna@kernel.org
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH v2] NFSv4: fairly test all delegations on a SEQ4_ revocation
Date: Fri, 25 Aug 2023 06:55:40 -0400 [thread overview]
Message-ID: <0AF073ED-9BCA-4DA0-B79C-5011BCEB450A@redhat.com> (raw)
In-Reply-To: <6c85bc9cc6bd8d70fe0e74b096c72944f61874a7.1692903063.git.bcodding@redhat.com>
On 24 Aug 2023, at 14:52, Benjamin Coddington wrote:
> When the client is required to use TEST_STATEID to discover which
> delegation(s) have been revoked, it may continually test delegations at the
> head of the list if the server continues to be unsatisfied and send
> SEQ4_STATUS_RECALLABLE_STATE_REVOKED. For a large number of delegations
> this behavior is prone to live-lock because the client may never be able to
> test and free revoked state at the end of the list since the
> SEQ4_STATUS_RECALLABLE_STATE_REVOKED will cause us to flag delegations at
> the head of the list to be tested. This problem is further exacerbated by
> the state manager's willingness to be scheduled out on a busy system while
> testing the list of delegations.
>
> Keep a generation counter for each attempt to test all delegations, and
> skip delegations that have already been tested in the current pass.
>
> Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
> ---
> fs/nfs/delegation.c | 7 ++++++-
> fs/nfs/delegation.h | 1 +
> include/linux/nfs_fs_sb.h | 1 +
> 3 files changed, 8 insertions(+), 1 deletion(-)
>
> --
>
> Changed on v2: remove extra brackets that had my debug statements
Hi potential reviewers - this can also be fixed with the simple addition of
a flag instead of a counter on every delegation, the only cost being that
nfs_server_reap_expired_delegations() would need to walk the whole list a
final time to remove the flag before returning.
The unsigned long counter is probably overkill. Any thoughts?
Ben
next prev parent reply other threads:[~2023-08-25 10:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-24 18:42 [PATCH] NFSv4: fairly test all delegations on a SEQ4_ revocation Benjamin Coddington
2023-08-24 18:52 ` [PATCH v2] " Benjamin Coddington
2023-08-25 10:55 ` Benjamin Coddington [this message]
2023-09-14 13:18 ` Benjamin Coddington
2023-09-18 20:36 ` Benjamin Coddington
2023-09-18 21:58 ` Trond Myklebust
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=0AF073ED-9BCA-4DA0-B79C-5011BCEB450A@redhat.com \
--to=bcodding@redhat.com \
--cc=anna@kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=trond.myklebust@hammerspace.com \
/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;
as well as URLs for NNTP newsgroup(s).