From: Trond Myklebust <trondmy@hammerspace.com>
To: "linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>,
"dan.f.shelton@gmail.com" <dan.f.shelton@gmail.com>
Subject: Re: PATCH [v3 0/2] NFSD: use CB_GETATTR to handle GETATTR conflict with write delegation
Date: Sat, 17 Feb 2024 02:00:47 +0000 [thread overview]
Message-ID: <ab13f901c00cc1ee2bd61df169327ceaff2f99bf.camel@hammerspace.com> (raw)
In-Reply-To: <CAAvCNcDDb4L2tcbBCcufFg=TLeFSrui4MHFuEeNUA+1VZyXLxQ@mail.gmail.com>
On Sat, 2024-02-17 at 00:34 +0100, Dan Shelton wrote:
> On Thu, 15 Feb 2024 at 23:11, Dai Ngo <dai.ngo@oracle.com> wrote:
> >
> > Currently GETATTR conflict with a write delegation is handled by
> > recalling the delegation before replying to the GETATTR.
> >
> > This patch series add supports for CB_GETATTR callback to get the
> > latest
> > change_info and size information of the file from the client that
> > holds
> > the delegation to reply to the GETATTR from the second client.
> >
> > NOTE: this patch series is mostly the same as the previous patches
> > which
> > were backed out when un unrelated problem of NFSD server hang on
> > reboot
> > was reported.
> >
> > The only difference is the wait_on_bit() in
> > nfsd4_deleg_getattr_conflict was
> > replaced with wait_on_bit_timeout() with 30ms timeout to avoid a
> > potential
> > DOS attack by exhausting NFSD kernel threads with GETATTR
> > conflicts.
>
> I have a concern about this static and very tiny timeout.
> What will happen if the ICMPv6 latency is well over 30ms, like 660ms
> (average 250mbit/s satellite latency)?
>
> Would that not ruin delegations?
That's a very valid point, not least because clients do not optimise
for back channel RPC calls, and because the consequences of a timeout
would be either to recall the delegation or to fence the client. The
former just makes a bad back channel situation worse. The latter just
interrupts I/O for no good reason
.
--
Trond Myklebust
Linux NFS client maintainer, Hammerspace
trond.myklebust@hammerspace.com
next prev parent reply other threads:[~2024-02-17 2:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-15 22:05 PATCH [v3 0/2] NFSD: use CB_GETATTR to handle GETATTR conflict with write delegation Dai Ngo
2024-02-15 22:05 ` [PATCH v3 1/2] NFSD: add supports for CB_GETATTR callback Dai Ngo
2024-02-15 22:05 ` [PATCH v3 2/2] NFSD: handle GETATTR conflict with write delegation Dai Ngo
2024-02-16 13:36 ` PATCH [v3 0/2] NFSD: use CB_GETATTR to " Chuck Lever
2024-02-16 23:34 ` Dan Shelton
2024-02-17 2:00 ` Trond Myklebust [this message]
2024-02-17 2:17 ` Chuck Lever
2024-02-17 17:42 ` dai.ngo
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=ab13f901c00cc1ee2bd61df169327ceaff2f99bf.camel@hammerspace.com \
--to=trondmy@hammerspace.com \
--cc=dan.f.shelton@gmail.com \
--cc=linux-nfs@vger.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