windows-dnlc-20080226
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 27 Feb 2008 04:53:45 +0000 (04:53 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 27 Feb 2008 04:53:45 +0000 (04:53 +0000)
commit107899cefaeebe693f8025e9c0d88784facd2236
tree5b7a4da0979ec9cfa283c8377dbc3524970475b9
parent428cac5d6dfc287452af51c08eba0f0fca276864
windows-dnlc-20080226

LICENSE MIT

Remove race conditions in the statistics code by switching to
Interlocked functions.

Speed up cm_dnlcEnter() by searching first with a read lock and
then switching to a write lock if not found.

Add HKLM\SOFTWARE\OpenAFS\Client registry values "UseDNLC" and "Debug"DNLC".
I suspect with the B+tree code that the DNLC is unnecessary overhead but
leave it on by default for now.
src/WINNT/afsd/cm_dnlc.c
src/WINNT/afsd/cm_dnlc.h