From: Michael Meffie Date: Thu, 11 Jun 2015 15:25:51 +0000 (-0400) Subject: libafs: update the volume setup time when the vldb is rechecked X-Git-Tag: openafs-stable-1_8_0pre1~51 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=f0fa5a5327c7440070d34127a124d6b7eb4bd32d libafs: update the volume setup time when the vldb is rechecked The vldb is rechecked when the fileserver returns certain error codes, such as VMOVED. When the vldb is rechecked, update the volume setupTime to reflect the most recent time the volume vldb information is known to be correct. Be sure the VRecheck flag is cleared after checking the vldb, since the volume write lock was dropped after finding the volume. Change-Id: I0ba389ee408de602e0059fbe8013012501c337d3 Reviewed-on: https://gerrit.openafs.org/11897 Reviewed-by: Mark Vitale Reviewed-by: Michael Meffie Reviewed-by: Benjamin Kaduk Tested-by: BuildBot --- diff --git a/src/afs/afs_analyze.c b/src/afs/afs_analyze.c index c28d794..c0233ef 100644 --- a/src/afs/afs_analyze.c +++ b/src/afs/afs_analyze.c @@ -197,6 +197,9 @@ VLDB_Same(struct VenusFid *afid, struct vrequest *areq) } } + tvp->states &= ~VRecheck; /* Just checked it. */ + tvp->setupTime = osi_Time(); /* Time the vldb was checked. */ + ReleaseWriteLock(&tvp->lock); afs_PutVolume(tvp, WRITE_LOCK); } else { /* can't find volume */