]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Windows: Move file server lock releases to daemon
authorJeffrey Altman <jaltman@your-file-system.com>
Sun, 10 Jul 2011 23:19:17 +0000 (00:19 +0100)
committerJeffrey Altman <jaltman@openafs.org>
Mon, 11 Jul 2011 07:57:08 +0000 (00:57 -0700)
commit52fee7140325d905f01798d7c5724744b606ac06
tree7e14c4914fef34915769461073e9aed919883835
parent1accef4e77c8cad518d728d15fbd194bebd49f33
Windows: Move file server lock releases to daemon

Create a new lock daemon thread which performs regular
cm_LockCheck() calls.  If a lock is deleted check the cm_scache_t
to see if the matching file server lock should be dropped.   If yes,
drop it.

This effectively caches file server locks for two seconds after
they are released to provide a chance for subsequent local lock
requests on the same file to avoid a file server RPC.  It also
ensures that windows processes do not thrash the file server and
force callback breaks.

Change-Id: I1c452e231ff282d9b45026aed1b02ab0c5932a77
Reviewed-on: http://gerrit.openafs.org/4964
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/cm_daemon.c
src/WINNT/afsd/cm_vnodeops.c