OpenAFS Master Repository branch, openafs-stable-1_6_x, updated. openafs-stable-1_6_5-15-gac75011
Gerrit Code Review
gerrit@openafs.org
Wed, 28 Aug 2013 05:07:29 -0700 (PDT)
The following commit has been merged in the openafs-stable-1_6_x branch:
commit ac750113f34bcd03df3350ec9863b7b3c67efa25
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>
(cherry picked from commit 1f891b622e9b32a068082087eae9d787057f7f00)
Reviewed-on: http://gerrit.openafs.org/9070
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/vol/volume.c | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
--
OpenAFS Master Repository