o Lock page queue accesses by vm_page_free().

This commit is contained in:
alc 2002-07-28 04:23:03 +00:00
parent 644895c908
commit a5823502e9

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