userland-cachemgr-zero-token-times-on-unlog-to-trigger-gc-20010605
authorJeff Riegel <riegel@almaden.ibm.com>
Tue, 5 Jun 2001 15:18:53 +0000 (15:18 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 5 Jun 2001 15:18:53 +0000 (15:18 +0000)
on unlog when using userland cache manager zero token fields so they will
be garbage-collected

src/afs/afs_pioctl.c

index 6ae1db2..62dae24 100644 (file)
@@ -1845,6 +1845,13 @@ static PUnlog(avc, afun, areq, ain, aout, ainSize, aoutSize)
            afs_ResetUserConns(tu);
            tu->refCount--;
            ObtainWriteLock(&afs_xuser,228);
+#ifdef UKERNEL
+            /* set the expire times to 0, causes
+             * afs_GCUserData to remove this entry
+             */
+            tu->ct.EndTimestamp = 0;
+            tu->tokenTime = 0;
+#endif  /* UKERNEL */
        }
     }
     ReleaseWriteLock(&afs_xuser);