From: Jeff Riegel Date: Tue, 5 Jun 2001 15:18:53 +0000 (+0000) Subject: userland-cachemgr-zero-token-times-on-unlog-to-trigger-gc-20010605 X-Git-Tag: openafs-stable-1_1_0~126 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=dde2a200a3f0f01bfaae678d3c2fd117489401b4;p=packages%2Fo%2Fopenafs.git 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 --- 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);