freebsd-skq/sys/fs
Rick Macklem b07bc39a23 Avoid the overhead of acquiring a lock in nfsrv_checkgetattr() when
there are no write delegations issued.

manu@ reported on the freebsd-current@ mailing list that there was
a significant performance hit in nfsrv_checkgetattr() caused by
the acquisition/release of a state lock, even when there were no
write delegations issued.
This patch add a count of outstanding issued write delegations to the
NFSv4 server. This count allows nfsrv_checkgetattr() to return without
acquiring any lock when the count is 0, avoiding the performance hit
for the case where no write delegations are issued.

Reported by:	manu
Reviewed by:	kib
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D13327
2017-12-04 21:50:27 +00:00
..
autofs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
cd9660 sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
cuse Allow CUSE(3) to free all memory mapped memory by using regular SWAP objects 2017-11-03 14:10:57 +00:00
deadfs sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
devfs r326394 is calling malloc with M_WAITOK under a lock, revert for now 2017-11-30 14:06:54 +00:00
ext2fs SPDX: Complete license IDs for ext2fs. 2017-12-02 17:22:55 +00:00
fdescfs sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
fifofs sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
fuse sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
msdosfs sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
nandfs sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
nfs sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
nfsclient sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
nfsserver Avoid the overhead of acquiring a lock in nfsrv_checkgetattr() when 2017-12-04 21:50:27 +00:00
nullfs sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
procfs sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
pseudofs sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
smbfs sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
tmpfs sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
udf sys/fs: further adoption of SPDX licensing ID tags. 2017-11-27 15:15:37 +00:00
unionfs sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00