From dde2a200a3f0f01bfaae678d3c2fd117489401b4 Mon Sep 17 00:00:00 2001 From: Jeff Riegel Date: Tue, 5 Jun 2001 15:18:53 +0000 Subject: [PATCH] userland-cachemgr-zero-token-times-on-unlog-to-trigger-gc-20010605 on unlog when using userland cache manager zero token fields so they will be garbage-collected --- src/afs/afs_pioctl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 6ae1db26d..62dae24f6 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -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); -- 2.39.5