public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Guy Keren <guy@vastdata.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: questions about the linux NFS 4.1 client and persistent sessions
Date: Mon, 19 Oct 2020 14:14:09 -0400	[thread overview]
Message-ID: <20201019181409.GB6692@fieldses.org> (raw)
In-Reply-To: <CAENext6Roxg6aOh8hWC8+SK8jKpZ55AGiTSx0W5maRd5QHLxLg@mail.gmail.com>

On Sun, Oct 18, 2020 at 02:18:55PM +0300, Guy Keren wrote:
> so suppose that the client sent two 'Open' requests in one compound.
> the server finished processing the first, but then had a delegation on
> the 2nd one, so it is supposed to return an NFS4_OK to the first Open
> and a NFSERR_DELAY for the 2nd open (and this is also the compound
> response that the server will store in its Duplicate Request Cache).
> if the server had a temporary network disconnection, or had a server
> restart, then when the client re-connects and re-sends this compound
> request, it receives the response from the server's Duplicate Request
> Cache (with OK for the first open and DELA?Y For the 2nd). than, i
> presume that the client needs to accept that the first Open already
> succeeded, and when creating a new session, re-send only the 2nd Open
> request. does this make sense?

Sounds right.

> > I don't know of any client that actually does that, for what it's worth.
> > The Linux client, for example, doesn't send any compounds that I can
> > think of that have more than one nonidempotent op.
> 
> does it mean that the linux NFS 4.1 client will also never send two
> Write requests in the same compound? and never send an Open request
> which might create a file, with a Write request in the same compound?

"Will never" might be a little strong--maybe there'll be a reason to do
it some day.  A server should be prepared to handle it.  But the client
doesn't currently do either of those things.

--b.

      reply	other threads:[~2020-10-19 18:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-10 20:39 questions about the linux NFS 4.1 client and persistent sessions guy keren
2020-10-14 19:26 ` J. Bruce Fields
2020-10-17 20:40   ` Guy Keren
2020-10-17 21:14     ` J. Bruce Fields
2020-10-18 11:18       ` Guy Keren
2020-10-19 18:14         ` J. Bruce Fields [this message]

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=20201019181409.GB6692@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=guy@vastdata.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