]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfscl: Add optional support for slots marked bad
authorRick Macklem <rmacklem@FreeBSD.org>
Sat, 9 Jul 2022 21:43:16 +0000 (14:43 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Wed, 27 Jul 2022 20:10:02 +0000 (13:10 -0700)
commit39f07893a5f6e12d6b3484de842d450ef6934904
treec26e3ddc109298cdab3d02ad0f075ab7acf620a7
parent4c941909462bf9b7b2b3a14a2d22072eebc08de2
nfscl: Add optional support for slots marked bad

This patch adds support for session slots marked bad
to nfsv4_sequencelookup().  An additional boolean
argument indicates if the check for slots marked bad
should be done.

The "cred" argument added to nfscl_reqstart() by
commit 326bcf9394c7 is now passed into nfsv4_setquence()
so that it can optionally set the boolean argument
for nfsv4_sequencelookup().  When optionally enabled,
nfsv4_setsequence() will do a DestroySession when all
slots are marked bad.

Since the code that marks slots bad is not yet committed,
this patch should not result in a semantics change.

PR: 260011
(cherry picked from commit 40ada74ee1dade637675cc22d50da8254046a197)
sys/fs/nfs/nfs_commonkrpc.c
sys/fs/nfs/nfs_commonsubs.c
sys/fs/nfs/nfs_var.h
sys/fs/nfs/nfsclstate.h
sys/fs/nfsserver/nfs_nfsdstate.c