windows-buf-scache-interlock-20080222
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 23 Feb 2008 07:27:17 +0000 (07:27 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 23 Feb 2008 07:27:17 +0000 (07:27 +0000)
commit12c6cfd4435c5a491e613e6394fabeeed4d81447
treecbf8ffe804d04359ae24a81b42d031968a75b1ec
parentdcef8fa4adc4c2cdc166494979d77d91c40c1f06
windows-buf-scache-interlock-20080222

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.
src/WINNT/afsd/cm_buf.c
src/WINNT/afsd/cm_buf.h
src/WINNT/afsd/cm_scache.c
src/WINNT/afsd/cm_scache.h
src/WINNT/afsd/cm_vnodeops.c