]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DEVEL15-windows-buf-scache-interlock-20080222
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 23 Feb 2008 07:30:18 +0000 (07:30 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 23 Feb 2008 07:30:18 +0000 (07:30 +0000)
commit4c4658bf1c124f81a33bf79192d2f0a2fde784ce
treea982e827a5faf06b1c72eddd31705fe31b45012a
parent57e8e826b2a0a791eecf1bd64155332f2227643f
DEVEL15-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.

(cherry picked from commit 12c6cfd4435c5a491e613e6394fabeeed4d81447)
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