opnsense-src/sys/fs/nfsserver
Rick Macklem a3821a906e nfsd: Fix session slot freeing for NFSv4.1/4.2
Without this patch the NFSv4.1/4.2 server erroneously
always frees session slot zero for callbacks.  This only
affects 4.1/4.2 mounts if the server has delegations
enabled or is a pNFS configuration.  Even for those
cases, the effect is mainly to only use slot 0 for
callbacks, serializing all of them.  There is a slight
chance that callbacks will fail if the client performs
them in a different order than received on the TCP
connection.

If this bug affects your server, you will see console
messages like:
  newnfs_request: Bad session slot

This patch fixes the problem.  Found during a recent
IETF NFSv4 testing event.

PR:	263728

(cherry picked from commit 271f6d52a6)
2022-05-16 12:21:06 -07:00
..
nfs_fha_new.c fs: clean up empty lines in .c and .h files 2020-09-01 21:18:40 +00:00
nfs_fha_new.h Re-organize the NFS file handle affinity code for the NFS server. 2020-04-14 00:01:26 +00:00
nfs_nfsdcache.c fs: clean up empty lines in .c and .h files 2020-09-01 21:18:40 +00:00
nfs_nfsdkrpc.c nfsd: fix replies from session cache for retried RPCs 2021-04-22 06:54:31 -07:00
nfs_nfsdport.c nfsd: Do not exempt NFSv3 Fsinfo from the TLS check 2022-04-13 07:55:45 -07:00
nfs_nfsdserv.c nfsd: Add a sanity check to SecinfoNoname for file type 2022-05-15 12:17:11 -07:00
nfs_nfsdsocket.c nfsd: Fix the NFSv4.2 pNFS MDS server for NFSERR_NOSPC via LayoutError 2021-11-24 14:35:03 -08:00
nfs_nfsdstate.c nfsd: Fix session slot freeing for NFSv4.1/4.2 2022-05-16 12:21:06 -07:00
nfs_nfsdsubs.c nfs: don't truncate directory cookies to 32-bits in the NFS server 2022-01-02 20:09:15 -07:00