Move the vm_page_busy() in pmap_dispose_thread() to a place where it is
covered by the page queues lock. (This actually makes alpha's pmap_dispose_thread() look more like the i386's.)
This commit is contained in:
parent
3d76eee5a2
commit
3d94105a25
@ -1042,10 +1042,10 @@ pmap_dispose_thread(td)
|
||||
m = vm_page_lookup(ksobj, i);
|
||||
if (m == NULL)
|
||||
panic("pmap_dispose_thread: kstack already missing?");
|
||||
vm_page_busy(m);
|
||||
ptek[i] = 0;
|
||||
pmap_invalidate_page(kernel_pmap, ks + i * PAGE_SIZE);
|
||||
vm_page_lock_queues();
|
||||
vm_page_busy(m);
|
||||
vm_page_unwire(m, 0);
|
||||
vm_page_free(m);
|
||||
vm_page_unlock_queues();
|
||||
|
Loading…
x
Reference in New Issue
Block a user