K 10 svn:author V 7 git2svn K 8 svn:date V 27 2021-04-24T22:57:41.752666Z K 7 svn:log V 1021 nfsd: fix replies from session cache for multiple retries Recent testing of network partitioning a FreeBSD NFSv4.1 server from a Linux NFSv4.1 client identified problems with both the FreeBSD server and Linux client. Commit 05a39c2c1c18 fixed replying with the cached reply in in the session slot if same session slot sequence#. However, the code uses the reply and, as such, will fail for a subsequent retry of the RPC. A subsequent retry would be an extremely rare event, but this patch fixes this, so long as m_copym(..M_NOWAIT) does not fail, which should also be a rare event. This fix affects the exceedingly rare case where a NFSv4 client retries a non-idempotent RPC, such as a lock operation, multiple times. Note that retries only occur after the client has needed to create a new TCP connection, with a new TCP connection for each retry. PR: 254816 (cherry picked from commit 22cefe3d8378f58adcdbb2c7589b9f30c2a38315) Git Hash: 14fc640c2e97885a82a7651b5ef912710e283d13 Git Author: rmacklem@FreeBSD.org END