Page MenuHomeFreeBSD

D34472.diff
No OneTemporary

D34472.diff

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

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)

Event Timeline