DAFS: Wait for exclusive ops in VFreeBitMapEntry_r
authorAndrew Deason <adeason@sinenomine.net>
Fri, 25 Feb 2011 20:43:09 +0000 (14:43 -0600)
committerDerrick Brashear <shadow@dementia.org>
Fri, 4 Mar 2011 15:37:23 +0000 (07:37 -0800)
commit08ffe3e81d875b58ae5fe4c5733845d5132913a0
tree8e2ebb083969c394f2619a93bb01097b284f8f80
parenta862d2df93fd4e8c8c7a0b8eebe9e59b75f54072
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
src/vol/volume.c
src/vol/volume.h