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.

MFC after: 2 weeks

Details

Provenance
rmacklemAuthored on May 27 2022, 9:20 PM
Parents
rG05882e28fbed: tests: Fix i386 and powerpc build
Branches
Unknown
Tags
Unknown