windows-scache-deletion-and-lock-verification-20080612
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 12 Jun 2008 15:20:46 +0000 (15:20 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 12 Jun 2008 15:20:46 +0000 (15:20 +0000)
commit52490d7968c2008912ab0887bdcde7fbba43b837
tree3977dba6cda3cd3299baac23356da4d9a928981f
parent3306c0887b62ca940808174906c2579b3b7d939a
windows-scache-deletion-and-lock-verification-20080612

LICENSE MIT

Add lock assertions to various functions.

Obtain a missing lock around a call to cm_RemoveSCacheFromHashTable().

Correct an abstraction layer violation.  cm_scache_t objects should
be marked deleted in cm_Unlink() and cm_RemoveDir() and not in
smb_CloseFID().  Cleanup of deleted cm_scache_t objects should be
performed in cm_ReleaseSCache() when the reference count hits zero.

Prototype cm_AdjustScacheLRU() and re-implement it using osi_QAddH().
src/WINNT/afsd/cm_scache.c
src/WINNT/afsd/cm_scache.h
src/WINNT/afsd/cm_vnodeops.c
src/WINNT/afsd/smb.c