]> git.michaelhowe.org Git - packages/o/openafs.git/commit
afs: Retry unlock after afs_StoreAllSegments
authorAndrew Deason <adeason@sinenomine.net>
Fri, 1 Apr 2011 18:43:13 +0000 (13:43 -0500)
committerDerrick Brashear <shadow@dementix.org>
Wed, 2 Nov 2011 02:44:08 +0000 (19:44 -0700)
commitc096127f73348a470e0e478b31c3fe132304b009
tree4372f70bb1ec18f49b4a4642e94f6488dbd54838
parent741bea05a3a5d170d47ca9df590f84ab02a7baad
afs: Retry unlock after afs_StoreAllSegments

HandleFlock calls afs_StoreAllSegments when unlocking an exclusive
flock lock. This can drop the write lock on avc, so we must
effectively retry the entire lock operation again, since the world may
have changed while we were waiting to reacquire the lock on avc. So,
retry once all of the lock checks up to that point, to ensure that a
lock on the file actually still exists.

FIXES 125446

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

Change-Id: Ibd215d586485d8f18f77665f5f85e6bee579e35e
Reviewed-on: http://gerrit.openafs.org/5766
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
src/afs/VNOPS/afs_vnop_flock.c