From 9cde99ab1884b5673635f5b2d2232d2f5aaeeaf9 Mon Sep 17 00:00:00 2001 From: alc Date: Fri, 2 Aug 2002 03:56:31 +0000 Subject: [PATCH] o Lock page queue accesses by vm_page_deactivate(). --- sys/vm/vm_object.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 82f4d564cd37..7f6a7883130b 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -1959,7 +1959,9 @@ vm_freeze_copyopts(vm_object_t object, vm_pindex_t froma, vm_pindex_t toa) printf("vm_freeze_copyopts: cannot read page from file: %lx\n", (long)m_in->pindex); continue; } + vm_page_lock_queues(); vm_page_deactivate(m_in); + vm_page_unlock_queues(); } vm_page_protect(m_in, VM_PROT_NONE);