o Lock page queue accesses by vm_page_deactivate().

This commit is contained in:
Alan Cox 2002-08-02 03:56:31 +00:00
parent 67d722ed73
commit 91bb74a88c

View File

@ -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);