HomeFreeBSD

nfscl: Do not handle NFSERR_BADSESSION in operation code

Description

nfscl: Do not handle NFSERR_BADSESSION in operation code

The NFSERR_BADSESSION reply from a NFSv4.1/4.2 server
is handled by newnfs_request(). It should not be handled
separately after newnfs_request() has returned.

These two cases were spotted during code inspection.
One of them should only redo what newnfs_request() already
did by the same "nfscl" thread. The other might have
resulted in recovery being done twice, but the code is
only used for "pnfs" mounts, so that would be rare.
Also, since NFSERR_BADSESSION should only be replied by
a server after the server reboots, this would be extremely
rare.

(cherry picked from commit 425e5c739bcf190265330b79e85f89eb4d7b5f25)

Details

Provenance
rmacklemAuthored on May 27 2022, 9:20 PM
Parents
rG0f8ad63d7df9: ixgbe(4): Fix common typos in source code comments
Branches
Unknown
Tags
Unknown