ref: b836802fe6c1327bc1947a560741f26aac6a7711
parent: ca851bbb5e93d6f208d967edd898e7042833889b
author: Alex Musolino <[email protected]>
date: Wed Dec 12 07:48:53 EST 2018
upas/fs: fix infinite loop in putcache Force the cacheclear operation in the LRU cache trimming loop in order to guarantee that the cache becomes smaller with each iteration. Without the force flag cacheclear is a no-op for mailboxes that do not provide a fetch function, e.g. POP3.
--- a/sys/src/cmd/upas/fs/cache.c
+++ b/sys/src/cmd/upas/fs/cache.c
@@ -100,7 +100,7 @@
return;
addlru(mb, mb->lru);
}
- cachefree(mb, mb->lru, 0);
+ cachefree(mb, mb->lru, 1);
}
}