Page MenuHomeFreeBSD

D20514.id58316.diff
No OneTemporary

D20514.id58316.diff

Index: head/sys/vm/uma_core.c
===================================================================
--- head/sys/vm/uma_core.c
+++ head/sys/vm/uma_core.c
@@ -146,7 +146,7 @@
/* kmem soft limit. */
static unsigned long uma_kmem_limit = LONG_MAX;
-static volatile unsigned long uma_kmem_total;
+static unsigned long uma_kmem_total;
/* Is the VM done starting up? */
static enum { BOOT_COLD = 0, BOOT_STRAPPED, BOOT_PAGEALLOC, BOOT_BUCKETS,
@@ -3737,14 +3737,14 @@
uma_size(void)
{
- return (uma_kmem_total);
+ return (atomic_load_long(&uma_kmem_total));
}
long
uma_avail(void)
{
- return (uma_kmem_limit - uma_kmem_total);
+ return (uma_kmem_limit - uma_size());
}
void

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 17, 8:20 PM (15 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25446487
Default Alt Text
D20514.id58316.diff (690 B)

Event Timeline