Hi Jason,
It looks like Trond has this patch on his "linux-next" and on his
"testing" branch:
http://git.linux-nfs.org/?p=trondmy/linux-nfs.git;a=shortlog;h=refs/heads/linux-next
commit 3453d5708b33efe76f40eca1c0ed60923094b971
Author: Trond Myklebust <trond.myklebust@xxxxxxxxxxxxxxx>
Date: Wed Jun 20 17:53:34 2018 -0400
NFSv4.1: Avoid false retries when RPC calls are interrupted
A 'false retry' in NFSv4.1 occurs when the client attempts to
transmit a
new RPC call using a slot+sequence number combination that
references an
already cached one. Currently, the Linux NFS client will do this if
a
user process interrupts an RPC call that is in progress.
The problem with doing so is that we defeat the main mechanism used
by
the server to differentiate between a new call and a replayed one.
Even
if the server is able to perfectly cache the arguments of the old
call,
it cannot know if the client intended to replay or send a new call.
The obvious fix is to bump the sequence number pre-emptively if an
RPC call is interrupted, but in order to deal with the corner cases
where the interrupted call is not actually received and processed
by
the server, we need to interpret the error NFS4ERR_SEQ_MISORDERED
as a sign that we need to either wait or locate a correct sequence
number that lies between the value we sent, and the last value that
was acked by a SEQUENCE call on that slot.
Signed-off-by: Trond Myklebust <trond.myklebust@xxxxxxxxxxxxxxx>
Tested-by: Jason Tibbitts <tibbs@xxxxxxxxxxx>
That's usually a good sign that he will include it in a pull request
when the 5.1 merge window opens.
Anna and Trond trade off sending patches for each linux release, this
time around Trond will send them.
Without having to take any further steps I expect this will land in
mainline for 5.1, and fedora will eventually pick it up.
Ben
On 25 Feb 2019, at 14:24, Jason L Tibbitts III wrote:
So I've now running this patch ("NFSv4.1: Avoid false retries when RPC
calls are interrupted") for several days with no hangs at all and no
other regressions noted. What would the next step be? Will this be
sent upstream? I'm not sure how to check if this is queued for
submission in someone's tree.
I doubt there is anything I can do to help the process but please let
me
know if there is.
- J<