Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107148690
D34472.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
D34472.diff
View Options
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -3816,12 +3816,6 @@
CTR4(KTR_UMA, "uma_zalloc_domain zone %s(%p) domain %d flags %d",
zone->uz_name, zone, domain, flags);
- if (flags & M_WAITOK) {
- WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL,
- "uma_zalloc_domain: zone \"%s\"", zone->uz_name);
- }
- KASSERT(curthread->td_critnest == 0 || SCHEDULER_STOPPED(),
- ("uma_zalloc_domain: called with spinlock or critical section held"));
KASSERT((zone->uz_flags & UMA_ZONE_SMR) == 0,
("uma_zalloc_domain: called with SMR zone."));
#ifdef NUMA
@@ -3831,6 +3825,11 @@
if (vm_ndomains == 1)
return (uma_zalloc_arg(zone, udata, flags));
+#ifdef UMA_ZALLOC_DEBUG
+ if (uma_zalloc_debug(zone, &item, udata, flags) == EJUSTRETURN)
+ return (item);
+#endif
+
/*
* Try to allocate from the bucket cache before falling back to the keg.
* We could try harder and attempt to allocate from per-CPU caches or
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 9:07 PM (21 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15757809
Default Alt Text
D34472.diff (995 B)
Attached To
Mode
D34472: uma_zalloc_domain: call uma_zalloc_debug in multi-domain path
Attached
Detach File
Event Timeline
Log In to Comment