o Lock page queue accesses by vm_page_free().

This commit is contained in:
Alan Cox 2002-07-28 04:23:03 +00:00
parent 014c2ea5cd
commit 57123de641

View File

@ -386,7 +386,9 @@ kmem_malloc(map, size, flags)
i -= PAGE_SIZE;
m = vm_page_lookup(kmem_object,
OFF_TO_IDX(offset + i));
vm_page_lock_queues();
vm_page_free(m);
vm_page_unlock_queues();
}
vm_map_delete(map, addr, addr + size);
vm_map_unlock(map);