Page MenuHomeFreeBSD

D20859.diff
No OneTemporary

D20859.diff

Index: head/sys/vm/vm_page.c
===================================================================
--- head/sys/vm/vm_page.c
+++ head/sys/vm/vm_page.c
@@ -3491,7 +3491,12 @@
pmap_page_set_memattr(m, VM_MEMATTR_DEFAULT);
#if VM_NRESERVLEVEL > 0
- if (vm_reserv_free_page(m))
+ /*
+ * Determine whether the page belongs to a reservation. If the page was
+ * allocated from a per-CPU cache, it cannot belong to a reservation, so
+ * as an optimization, we avoid the check in that case.
+ */
+ if ((m->flags & PG_PCPU_CACHE) == 0 && vm_reserv_free_page(m))
return (false);
#endif

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 28, 8:58 PM (10 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29057195
Default Alt Text
D20859.diff (591 B)

Event Timeline