SVNews r326544

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-12-04 21:50:27 - r326544 by rmacklem (Rick Macklem)

Complete list of files affected by revision r326544:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/fs/nfsserver/nfs_nfsdstate.c  

Commit message:

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:


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 2 ms, 1 file printed. Current time is 2018-03-21 11:04:36. All times are in UTC/GMT.