disconnected-put-back-vcaches-we-held-20090323
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Mon, 23 Mar 2009 19:11:16 +0000 (19:11 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 23 Mar 2009 19:11:16 +0000 (19:11 +0000)
LICENSE IPL10

if we hold a vcache for shadow, we need to release the ref when we give it up

src/afs/afs_dcache.c

index f9cab1b..878bfab 100644 (file)
@@ -3890,6 +3890,7 @@ void afs_DeleteShadowDir(struct vcache *avc)
     ObtainWriteLock(&afs_disconDirtyLock, 708);
     QRemove(&avc->shadowq);
     ReleaseWriteLock(&afs_disconDirtyLock);
+    afs_PutVCache(avc); /* Because we held it when we added to the queue */
 }
 
 /*!