]> git.michaelhowe.org Git - packages/o/openafs.git/commit
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>
Tue, 8 Mar 2011 12:16:04 +0000 (04:16 -0800)
commitc7612a49e1db924a8b8b24319754834b130c9312
treef43ad46f9d5f55f5df61127ce3351b55659c90b0
parent0a8bfca218a10df6e83768996a050cff8b19f02f
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.

Reviewed-on: http://gerrit.openafs.org/4058
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 08ffe3e81d875b58ae5fe4c5733845d5132913a0)

Change-Id: I0336bbc543828237cb9ae97ede18133b4e15100a
Reviewed-on: http://gerrit.openafs.org/4168
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