Eliminate some acquisitions and releases of the page queues lock that are

no longer necessary.
This commit is contained in:
Alan Cox 2007-02-18 06:33:02 +00:00
parent 6bf00d8bc7
commit ae0663a383
4 changed files with 0 additions and 8 deletions

View File

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

View File

@ -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();
}

View File

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

View File

@ -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();
}