OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-819-gb41575d
Gerrit Code Review
gerrit@openafs.org
Fri, 4 Mar 2011 07:37:54 -0800 (PST)
The following commit has been merged in the master branch:
commit 08ffe3e81d875b58ae5fe4c5733845d5132913a0
Author: Andrew Deason <adeason@sinenomine.net>
Date: Fri Feb 25 14:43:09 2011 -0600
DAFS: Wait for exclusive ops in VFreeBitMapEntry_r
VAllocBitmapEntry_r puts the volume in an exclusive state and drops
VOL_LOCK when traversing the volume bitmap and updating the bitmap.
So, VFreeBitMapEntry_r must ensure the volume is not in an exclusive
state, to make sure that VAllocBitmapEntry_r is not updating the
bitmap at the same time. Do so, by waiting for the volume to come out
of exclusive state at the beginning of VFreeBitMapEntry_r.
Change-Id: I5fdd344e4d9d12451fd65a767fa5672c8be70a39
Reviewed-on: http://gerrit.openafs.org/4058
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/vol/vnode.c | 13 ++++++++++---
src/vol/volume.c | 30 ++++++++++++++++++++++++------
src/vol/volume.h | 9 ++++++---
3 files changed, 40 insertions(+), 12 deletions(-)
--
OpenAFS Master Repository