OpenAFS Master Repository branch, openafs-devel-1_7_x, updated. openafs-devel-1_7_21-82-g85e8944
Gerrit Code Review
gerrit@openafs.org
Tue, 5 Feb 2013 22:42:08 -0800 (PST)
The following commit has been merged in the openafs-devel-1_7_x branch:
commit 2219fcd548aa298eea9f3a68d8232507c8ddb186
Author: Jeffrey Altman <jaltman@your-file-system.com>
Date: Mon Feb 4 15:14:16 2013 -0500
Windows: AFSVolumeCB track RefCount reasons
Introduct AFSVolumeIncrement and AFSVolumeDecrement functions
which are used to increment not only the AFSVolumeCB.VolumeReferenceCount
but also a new VolumeReferences[Reason] counter. In the future when
a VolumeReferenceCount error occurs it may be possible to isolate the
cause to a subset of the code.
In the process, the VolumeReferenceCount necessary to free the
AFSVolumeCB object is changed from 1 to 0 and AFSInitVolume no longer
initializes the AFSVolumeCB count to 2.
The signature for AFSInitVolume and AFSLocateNameEntry are modified
to permit a volume reference reason to be provided. This permits
the reference to be allocated in one function and released in another
without resulting in count imbalances.
Reviewed-on: http://gerrit.openafs.org/9067
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit d0e7d8c76e038c5bd76b49fd8ca7b588e848a4f1)
Change-Id: I895f1ba9fa9513b8080e08aa44fb0f2da389a856
Reviewed-on: http://gerrit.openafs.org/9071
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsrdr/kernel/lib/AFSCreate.cpp | 15 ++-
src/WINNT/afsrdr/kernel/lib/AFSExtentsSupport.cpp | 24 +++--
src/WINNT/afsrdr/kernel/lib/AFSFcbSupport.cpp | 58 ++++++++--
src/WINNT/afsrdr/kernel/lib/AFSGeneric.cpp | 137 ++++++++++++--------
src/WINNT/afsrdr/kernel/lib/AFSNameSupport.cpp | 86 +++++++++----
src/WINNT/afsrdr/kernel/lib/AFSWorker.cpp | 2 +-
src/WINNT/afsrdr/kernel/lib/Include/AFSCommon.h | 10 ++
src/WINNT/afsrdr/kernel/lib/Include/AFSDefines.h | 17 +++
src/WINNT/afsrdr/kernel/lib/Include/AFSStructs.h | 2 +
9 files changed, 248 insertions(+), 103 deletions(-)
--
OpenAFS Master Repository