Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146105371
D20859.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
591 B
Referenced Files
None
Subscribers
None
D20859.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D20859: Don't call vm_reserv_free_page() if PG_PCPU_CACHE is set.
Attached
Detach File
Event Timeline
Log In to Comment