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:
parent
01083c2eb8
commit
81636e22b0
@ -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);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user