]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DEVEL15-windows-misc-fixes-20061006
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 6 Oct 2006 17:32:43 +0000 (17:32 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 6 Oct 2006 17:32:43 +0000 (17:32 +0000)
commit7e447d984514bb1f88fecc11625d26a2ee12466b
tree49868a6e07df7b7312bd1604233f303371116669
parent9067be8ef5faf81e3aaf38a16179b36d079cc51f
DEVEL15-windows-misc-fixes-20061006

#ifdef DEBUG_REFCOUNT the ref count log entries so they aren't always
compiled in

comment out the remaining location where the write lock on cm_scacheLock
is dropped in order to obtain the scache mutex on the object returned
from cm_GetNewSCache().  Dropping the lock results in more than one
thread being given the same cm_scache_t which is more dangerous than
blowing away the contents of the object without holding the mutex

ensure that cm_BufWrite is always called with a non-NULL scp.  Add
an assertion to double check that we do it all the time.

(cherry picked from commit ffe26eb18da581d2df02f9531d97e31e1c6dee65)
src/WINNT/afsd/cm_buf.c
src/WINNT/afsd/cm_daemon.c
src/WINNT/afsd/cm_dcache.c
src/WINNT/afsd/cm_scache.c