Eliminate some acquisitions and releases of the page queues lock that are
no longer necessary.
This commit is contained in:
parent
6bf00d8bc7
commit
ae0663a383
@ -1498,11 +1498,9 @@ pmap_release(pmap_t pmap)
|
||||
pmap->pm_pml4[DMPML4I] = 0; /* Direct Map */
|
||||
pmap->pm_pml4[PML4PML4I] = 0; /* Recursive Mapping */
|
||||
|
||||
vm_page_lock_queues();
|
||||
m->wire_count--;
|
||||
atomic_subtract_int(&cnt.v_wire_count, 1);
|
||||
vm_page_free_zero(m);
|
||||
vm_page_unlock_queues();
|
||||
PMAP_LOCK_DESTROY(pmap);
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,5 @@ uma_small_free(void *mem, int size, u_int8_t flags)
|
||||
pa = DMAP_TO_PHYS((vm_offset_t)mem);
|
||||
dump_drop_page(pa);
|
||||
m = PHYS_TO_VM_PAGE(pa);
|
||||
vm_page_lock_queues();
|
||||
vm_page_free(m);
|
||||
vm_page_unlock_queues();
|
||||
}
|
||||
|
@ -1559,7 +1559,6 @@ pmap_release(pmap_t pmap)
|
||||
|
||||
pmap_qremove((vm_offset_t)pmap->pm_pdir, NPGPTD);
|
||||
|
||||
vm_page_lock_queues();
|
||||
for (i = 0; i < NPGPTD; i++) {
|
||||
m = ptdpg[i];
|
||||
#ifdef PAE
|
||||
@ -1570,7 +1569,6 @@ pmap_release(pmap_t pmap)
|
||||
atomic_subtract_int(&cnt.v_wire_count, 1);
|
||||
vm_page_free_zero(m);
|
||||
}
|
||||
vm_page_unlock_queues();
|
||||
PMAP_LOCK_DESTROY(pmap);
|
||||
}
|
||||
|
||||
|
@ -76,7 +76,5 @@ uma_small_free(void *mem, int size, u_int8_t flags)
|
||||
vm_page_t m;
|
||||
|
||||
m = PHYS_TO_VM_PAGE(IA64_RR_MASK((u_int64_t)mem));
|
||||
vm_page_lock_queues();
|
||||
vm_page_free(m);
|
||||
vm_page_unlock_queues();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user