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.6.0^2~56 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=362414f7aa04ec15dde4441479cac54be43c75f5;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 Reviewed-on: http://gerrit.openafs.org/5184 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit e8607d8d250fb41fcf4e60a09917f971c4d6104a) Change-Id: I2ad487e348f84cd7ced884c920230e3371fce902 Reviewed-on: http://gerrit.openafs.org/5186 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/afs/DARWIN/osi_misc.c b/src/afs/DARWIN/osi_misc.c index 56f118198..b6d272671 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); }