diff options
Diffstat (limited to 'sys/vm/vm_glue.c')
-rw-r--r-- | sys/vm/vm_glue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index 870bced..cf37e46 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -328,12 +328,14 @@ vm_proc_swapin(struct proc *p) } if (upobj->resident_page_count != UAREA_PAGES) panic("vm_proc_swapin: lost pages from upobj"); + vm_page_lock_queues(); TAILQ_FOREACH(m, &upobj->memq, listq) { m->valid = VM_PAGE_BITS_ALL; vm_page_wire(m); vm_page_wakeup(m); vm_page_flag_set(m, PG_MAPPED | PG_WRITEABLE); } + vm_page_unlock_queues(); up = (vm_offset_t)p->p_uarea; pmap_qenter(up, ma, UAREA_PAGES); } |