Skip to content

Two nfsd4 fixes for 4.14 longterm

Donald Buczek linux-nfs stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nfsd4: fix cached replies to solo SEQUENCE compoundsfs/nfsd/nfs4state.c fs/nfsd/state.h fs/nfsd/xdr4.h+27 -70 replies
2/2nfsd4: catch some false session retriesfs/nfsd/nfs4state.c fs/nfsd/state.h+37 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchOlga Kornievskaia
SeriesT-b T-b T-b T-b
1/2T-b
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 4.14 0/2] Two nfsd4 fixes for 4.14 longterm

Please include the upstream patches

* commit 085def3ade52 ("nfsd4: fix cached replies to solo SEQUENCE
compounds")
* commit 53da6a53e1d4 ("nfsd4: catch some false session retries")

into longterm kernel 4.14.

Because these patches went upstream in 4.15, they are already included in longterm 4.19 and stable.

A nfsd4 server failure, where the server sends unrelated replies to client requests containing only SEQUENCE operations has been experienced with kernel version 4.14.87 [1]. Because the client retries endlessly, this completely breaks the nfs mount.

A backport of these patches has been suggested by the patch author J. Bruce Fields. [1]

Only limited testing has been done (running a single server with 4.14.96 and these two patches for a week and generating some high load on it). It can not be proven by testing, that the patches really fix the experienced problem. However, as the patches are part of upstream and stable kernels for over a year they should be a save pick.

Backport note: Only line numbers updated.

[1] https://bugzilla.kernel.org/show_bug.cgi?id=202435

J. Bruce Fields (2):
nfsd4: fix cached replies to solo SEQUENCE compounds
nfsd4: catch some false session retries

 fs/nfsd/nfs4state.c | 57 ++++++++++++++++++++++++++++++++++++++++-----
 fs/nfsd/state.h     |  2 ++
 fs/nfsd/xdr4.h      | 13 +++++++++--
 3 files changed, 64 insertions(+), 8 deletions(-)
Signature · 1 line
2.20.0