OpenAFS CVS Commit: openafs/src/WINNT/afsd by jaltman

cvs@GRAND.CENTRAL.ORG cvs@GRAND.CENTRAL.ORG
Sat, 23 Feb 2008 02:27:18 EST


Update of /cvs/openafs/src/WINNT/afsd
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-3/src/WINNT/afsd

Modified Files:
	cm_buf.c cm_buf.h cm_scache.c cm_scache.h cm_vnodeops.c 
Log Message:
DELTA windows-buf-scache-interlock-20080222
AUTHOR jaltman@secure-endpoints.com
LICENSE MIT

Improve parallelism by using InterlockedIncrement and InterlockedDecrement
to adjust the refCount fields of cm_buf_t and cm_scache_t objects.  This
permits read locks to be used for increments and decrements but requires
a write-lock to perform any actions based upon the refCount hitting zero.

Inline cm_FidCmp to further improve performance.

Remove unused variables.




--- DELTA config follows ---
windows-buf-scache-interlock-20080222 openafs/src/WINNT/afsd/cm_buf.c 1.58 1.59
windows-buf-scache-interlock-20080222 openafs/src/WINNT/afsd/cm_buf.h 1.22 1.23
windows-buf-scache-interlock-20080222 openafs/src/WINNT/afsd/cm_scache.c 1.95 1.96
windows-buf-scache-interlock-20080222 openafs/src/WINNT/afsd/cm_scache.h 1.42 1.43
windows-buf-scache-interlock-20080222 openafs/src/WINNT/afsd/cm_vnodeops.c 1.131 1.132