From: Derrick Brashear Date: Wed, 10 Aug 2011 13:39:23 +0000 (-0400) Subject: macos: reset next vcache pointer after reacquiring xvcache X-Git-Tag: upstream/1.8.0_pre1^2~3419 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e8607d8d250fb41fcf4e60a09917f971c4d6104a;p=packages%2Fo%2Fopenafs.git macos: reset next vcache pointer after reacquiring xvcache dropping the xvcache lock means that things can change out from under us. in case they do, reset the next vcache pointer before looping Change-Id: I71be39a2f2986804257c50b1d5b7d557b58a3573 Reviewed-on: http://gerrit.openafs.org/5184 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/DARWIN/osi_misc.c b/src/afs/DARWIN/osi_misc.c index c602fb10c..03792d9c8 100644 --- a/src/afs/DARWIN/osi_misc.c +++ b/src/afs/DARWIN/osi_misc.c @@ -90,6 +90,7 @@ loop: ReleaseWriteLock(&tvc->lock); } ObtainReadLock(&afs_xvcache); + uq = QPrev(tq); /* our tvc ptr is still good until now */ AFS_FAST_RELE(tvc); }