Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136461805
D25980.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
995 B
Referenced Files
None
Subscribers
None
D25980.diff
View Options
Index: head/sys/vm/uma_core.c
===================================================================
--- head/sys/vm/uma_core.c
+++ head/sys/vm/uma_core.c
@@ -3429,12 +3429,6 @@
bucket_free(zone, bucket, udata);
}
- /* Short-circuit for zones without buckets and low memory. */
- if (zone->uz_bucket_size == 0 || bucketdisable) {
- critical_enter();
- return (false);
- }
-
/*
* Attempt to retrieve the item from the per-CPU cache has failed, so
* we must go back to the zone. This requires the zdom lock, so we
@@ -3449,11 +3443,12 @@
VM_DOMAIN_EMPTY(domain))
domain = zone_domain_highest(zone, domain);
bucket = cache_fetch_bucket(zone, cache, domain);
- if (bucket == NULL) {
+ if (bucket == NULL && zone->uz_bucket_size != 0 && !bucketdisable) {
bucket = zone_alloc_bucket(zone, udata, domain, flags);
new = true;
- } else
+ } else {
new = false;
+ }
CTR3(KTR_UMA, "uma_zalloc: zone %s(%p) bucket zone returned %p",
zone->uz_name, zone, bucket);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 18, 10:02 PM (8 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25553657
Default Alt Text
D25980.diff (995 B)
Attached To
Mode
D25980: uma: Check the full bucket cache before short-circuiting.
Attached
Detach File
Event Timeline
Log In to Comment