HomeFreeBSD

nfscl: Add a cred argument to nfscl_reqstart()

Description

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

(cherry picked from commit 326bcf9394c74ac19afda7c741b3521d91b46b10)

Details

Provenance
rmacklemAuthored on Jul 8 2022, 11:58 PM
Parents
rGb3c8ab9ff908: ses: don't panic if disk elements have really weird descriptors
Branches
Unknown
Tags
Unknown