OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-3355-g1f891b6
Gerrit Code Review
gerrit@openafs.org
Tue, 5 Feb 2013 03:49:12 -0800 (PST)
The following commit has been merged in the master branch:
commit 1f891b622e9b32a068082087eae9d787057f7f00
Author: Mark Vitale <mvitale@sinenomine.net>
Date: Fri Dec 21 17:56:14 2012 -0500
dafs: preattach should wait for exclusive states
In rare circumstances an FSYNC_VOL_ON operation may fail silently,
leaving the volume in its previous state. The only clue is a FileLog
message "volume <nnnn> not in quiescent state".
This is caused by a race condition in the volume package: an
FSYNC_VOL_ON operation is attempting to preattach a volume
(in VPreAttachVolumeByVp_r()) at the same time a fileserver RPC
(e.g. FetchStatus) is detaching the volume (in VReleaseVolumeHandles_r())
at the conclusion of attach2() logic.
The fix calls VWaitExclusiveState_r() before calling
VPreAttachVolumeByVp_r().
Change-Id: Ib66859381d29311fda3e08984dcb740eadafb340
Reviewed-on: http://gerrit.openafs.org/8814
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/vol/volume.c | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
--
OpenAFS Master Repository