]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfscl: Use NFSMNTP_DELEGISSUED in two more functions
authorRick Macklem <rmacklem@FreeBSD.org>
Sat, 30 Oct 2021 03:35:02 +0000 (20:35 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Sat, 30 Oct 2021 03:35:02 +0000 (20:35 -0700)
commitdc6dd769de63c4eceb8899205a5d780d9f278fd2
tree9a11f17d7c77a41bff1d13cc6ac464dc2858bd2d
parent141a53cd58cdf0681f800bb98ed5718f32ea7909
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.

MFC after: 2 week
sys/fs/nfsclient/nfs_clstate.c