Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144484342
D19835.1774914071.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
612 B
Referenced Files
None
Subscribers
None
D19835.1774914071.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 30, 11:41 PM (9 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28232586
Default Alt Text
D19835.1774914071.diff (612 B)
Attached To
Mode
D19835: for a cache-only zone the destructor tries to destroy a non-existent keg
Attached
Detach File
Event Timeline
Log In to Comment