summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-07-05 06:43:32 +0000
committeralc <alc@FreeBSD.org>2002-07-05 06:43:32 +0000
commit596ff14965fbb61a0bc595e55993b3b262028400 (patch)
tree970b052dfeb584780ede59fb68d479cda09691aa /sys
parent27d14d46681c802942a9e8bceb27c468b22531f3 (diff)
downloadFreeBSD-src-596ff14965fbb61a0bc595e55993b3b262028400.zip
FreeBSD-src-596ff14965fbb61a0bc595e55993b3b262028400.tar.gz
o Lock accesses to the free page queues in contigmalloc1().
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_contig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_contig.c b/sys/vm/vm_contig.c
index 388fb84..ab47d40 100644
--- a/sys/vm/vm_contig.c
+++ b/sys/vm/vm_contig.c
@@ -221,6 +221,7 @@ again1:
vm_page_busy(m);
vm_page_free(m);
}
+ mtx_lock_spin(&vm_page_queue_free_mtx);
vm_pageq_remove_nowakeup(m);
m->valid = VM_PAGE_BITS_ALL;
if (m->flags & PG_ZERO)
@@ -230,6 +231,7 @@ again1:
m->wire_count = 0;
m->busy = 0;
m->object = NULL;
+ mtx_unlock_spin(&vm_page_queue_free_mtx);
}
/*
OpenPOWER on IntegriCloud