Page MenuHomeFreeBSD

D19835.id.diff
No OneTemporary

D19835.id.diff

Index: head/sys/vm/uma_core.c
===================================================================
--- head/sys/vm/uma_core.c
+++ head/sys/vm/uma_core.c
@@ -1916,10 +1916,10 @@
*/
zone_drain_wait(zone, M_WAITOK);
/*
- * We only destroy kegs from non secondary zones.
+ * We only destroy kegs from non secondary/non cache zones.
*/
- if ((keg = zone->uz_keg) != NULL &&
- (zone->uz_flags & UMA_ZONE_SECONDARY) == 0) {
+ if ((zone->uz_flags & (UMA_ZONE_SECONDARY | UMA_ZFLAG_CACHE)) == 0) {
+ keg = zone->uz_keg;
rw_wlock(&uma_rwlock);
LIST_REMOVE(keg, uk_link);
rw_wunlock(&uma_rwlock);

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 5, 3:33 AM (14 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29269318
Default Alt Text
D19835.id.diff (612 B)

Event Timeline