Further reduce the use of Giant in vm_map_delete(): Perform pmap_remove()

on system maps, besides the kmem_map, without Giant.

In collaboration with:	tegge
This commit is contained in:
alc 2004-02-12 20:56:06 +00:00
parent 01083c2eb8
commit 81636e22b0

View File

@ -2173,12 +2173,12 @@ vm_map_delete(vm_map_t map, vm_offset_t start, vm_offset_t end)
vm_map_entry_unwire(map, entry);
}
if (map != kmem_map)
if (!map->system_map)
mtx_lock(&Giant);
vm_page_lock_queues();
pmap_remove(map->pmap, entry->start, entry->end);
vm_page_unlock_queues();
if (map != kmem_map)
if (!map->system_map)
mtx_unlock(&Giant);
/*