]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfscl: Add a cred argument to nfscl_reqstart()
authorRick Macklem <rmacklem@FreeBSD.org>
Fri, 8 Jul 2022 23:58:06 +0000 (16:58 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Fri, 8 Jul 2022 23:58:06 +0000 (16:58 -0700)
commit326bcf9394c74ac19afda7c741b3521d91b46b10
tree87b2399509139f3b34adfedf75f7bccf7e789996
parent16e4487e5f82e1ff501fe5af6afbfbd0435a1cbf
nfscl: Add a cred argument to nfscl_reqstart()

To deal with broken session slots caused by the use of the
"soft" and/or "intr" mount options, nfsv4_sequencelookup()
will be modified to track the potentially broken session
slots.  Then, when all session slots are potentially
broken, do a DeleteSession operation, so that the NFSv4
server will reply NFSERR_BADSESSION to uses of the session.
These changes will be done in future commits.  However,
to do the DeleteSession RPC, a "cred" argument is needed
for nfscl_reqstart().  This patch adds this argument,
which is unused at this time.  If the argument is NULL,
it indicates that DeleteSession should not be done
(usually because the RPC does not use sessions).

This patch should not cause any semantics change.

PR: 260011
MFC after: 2 weeks
sys/fs/nfs/nfs_commonsubs.c
sys/fs/nfs/nfs_var.h
sys/fs/nfs/nfscl.h
sys/fs/nfsclient/nfs_clrpcops.c
sys/fs/nfsserver/nfs_nfsdport.c