summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-07-20 20:12:57 +0000
committeralc <alc@FreeBSD.org>2002-07-20 20:12:57 +0000
commit4de6bb3a4daba912d5ac55ac077dfd83183ec6b3 (patch)
tree512aa304019d62932c704cbf53edb8a6059aacda /sys/vm/vm_page.c
parenta01b1feba6a536597245b8bd8d380609d0150b85 (diff)
downloadFreeBSD-src-4de6bb3a4daba912d5ac55ac077dfd83183ec6b3.zip
FreeBSD-src-4de6bb3a4daba912d5ac55ac077dfd83183ec6b3.tar.gz
o Assert that the page queues lock is held in vm_page_try_to_free().
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r--sys/vm/vm_page.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 831f8c8..3a80951 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -1387,6 +1387,8 @@ vm_page_try_to_cache(vm_page_t m)
int
vm_page_try_to_free(vm_page_t m)
{
+
+ mtx_assert(&vm_page_queue_mtx, MA_OWNED);
if (m->dirty || m->hold_count || m->busy || m->wire_count ||
(m->flags & (PG_BUSY|PG_UNMANAGED))) {
return (0);
OpenPOWER on IntegriCloud