HomeFreeBSD

nfscl: Use NFSMNTP_DELEGISSUED in two more functions

Description

nfscl: Use NFSMNTP_DELEGISSUED in two more functions

Commit 5e5ca4c8fc53 added a NFSMNTP_DELEGISSUED flag to indicate when
a delegation has been issued to the mount. For the common case
where an NFSv4 server is not issuing delegations, this flag
can be checked to avoid acquisition of the NFSCLSTATEMUTEX.

This patch adds checks for NFSMNTP_DELEGISSUED being set
to two more functions.

This change appears to be performance neutral for a small number
of opens, but should reduce lock contention for a large number of opens
for the common case where server is not issuing delegations.

(cherry picked from commit dc6dd769de63c4eceb8899205a5d780d9f278fd2)

Details

Provenance
rmacklemAuthored on Oct 30 2021, 3:35 AM
Parents
rG00ec7c6ab526: nfscl: Fix race between Lookup and Setattr of size
Branches
Unknown
Tags
Unknown