HomeFreeBSD

nfsd: fix replies from session cache for retried RPCs

Description

nfsd: fix replies from session cache for retried RPCs

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.

The FreeBSD server failec to reply using the cached
reply in the session slot when an RPC was retried on
the session slot, as indicated by same slot sequence#.

This patch fixes this. It should also fix a similar
failure for NFSv4.0 mounts, when the sequence# in
the open/lock_owner requires a reply be done from
an entry locked into the DRC.

This fix affects the fairly rare case where a NFSv4
client retries a non-idempotent RPC, such as a lock
operation. Note that retries only occur after the
client has needed to create a new TCP connection.

MFC after: 2 weeks

Details

Provenance
rmacklemAuthored on Apr 8 2021, 9:04 PM
Parents
rG9e5243d7b659: Enforce check for using the return result for ifa?_try_ref().
Branches
Unknown
Tags
Unknown