]> git.michaelhowe.org Git - packages/o/openafs.git/commit
windows-misc-fixes-20061006
authorJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 6 Oct 2006 17:31:30 +0000 (17:31 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Fri, 6 Oct 2006 17:31:30 +0000 (17:31 +0000)
commitffe26eb18da581d2df02f9531d97e31e1c6dee65
tree4281bc63fd9014c727f8da5bfcf9f32e73e8a235
parentffe5092c3107afa72696f8d164c3ec587c2255ad
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.
src/WINNT/afsd/cm_buf.c
src/WINNT/afsd/cm_daemon.c
src/WINNT/afsd/cm_dcache.c
src/WINNT/afsd/cm_scache.c