]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DEVEL15-windows-osi-convertRToW-and-logging-optimizations-20080227
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 27 Feb 2008 17:06:43 +0000 (17:06 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 27 Feb 2008 17:06:43 +0000 (17:06 +0000)
commitb6654a597fb453b0f3ca5f4417476d312c9174d7
tree565af0a0dfd4afbcf4d2f5714528afb49f7f0c2b
parent92f03f92ce90a84730f9a0ec037b858fabd43cd1
DEVEL15-windows-osi-convertRToW-and-logging-optimizations-20080227

LICENSE MIT

Add lock_convertRToW which permits a read-lock to be upgraded to a
write lock.  If the caller is the only reader it permits a fast
transition otherwise it adds the caller to the waiters queue.

In the osi_Log macros, check to see if the log is enabled before making
the function call.  This avoids significant function call overhead.

In the cache manager, make use of the above.

(cherry picked from commit 72687c02b6ee5ff3029937b0278733b252f14550)
src/WINNT/afsd/cm_buf.c
src/WINNT/afsd/cm_dir.c
src/WINNT/afsd/cm_dnlc.c
src/WINNT/afsd/cm_vnodeops.c
src/WINNT/client_osi/libosi.def
src/WINNT/client_osi/osibasel.c
src/WINNT/client_osi/osibasel.h
src/WINNT/client_osi/osilog.h
src/WINNT/client_osi/osiltype.h
src/WINNT/client_osi/osistatl.c