]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Windows: Correct cm_volume locking
authorJeffrey Altman <jaltman@your-file-system.com>
Thu, 27 Jan 2011 01:10:57 +0000 (20:10 -0500)
committerDerrick Brashear <shadow@dementia.org>
Tue, 8 Feb 2011 14:54:38 +0000 (06:54 -0800)
commitfb1bc201648969e29571252e210aba370b9e5c86
treec4751a0fa28de3b1f613d541ef49399b2cb793c3
parenta9b922a282cb25cf8de384ba7f1a751ee5e88f24
Windows: Correct cm_volume locking

cm_volume_t flags was used for two categories of flags.  The first
protected by the cm_volume_t->rw lock.  The second protected by
the global cm_volumeLock.  Separate the flags field into two
afs_uint16 fields and break the flag space into FLAG and QFLAG.

Add assertions to the volume LRU functions to ensure that they
are always called with cm_volumeLock write-locked.

Correct two locations where cm_AdjustVolumeLRU() was called
read-locked instead of write-locked.

Reviewed-on: http://gerrit.openafs.org/3760
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit 962a95c21cc82a8bbb1dc1233c91acd7236fc8e4)

Change-Id: I6c60dd770057f665f66bf3cea2d653bbe2524979
Reviewed-on: http://gerrit.openafs.org/3867
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/WINNT/afsd/cm_memmap.h
src/WINNT/afsd/cm_volume.c
src/WINNT/afsd/cm_volume.h