mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Once we have decided to swap out a process, don't delay the laundering of
its per-thread kernel stack pages by making them pass through the inactive queue first. Instead, immediately place them in the laundry so that they might be cleaned and made available for reclamation sooner. Reviewed by: kib, markj MFC after: 1 week
This commit is contained in:
parent
7e792cb8f5
commit
36ca312db5
1 changed files with 1 additions and 1 deletions
|
|
@ -546,7 +546,7 @@ vm_thread_swapout(struct thread *td)
|
|||
panic("vm_thread_swapout: kstack already missing?");
|
||||
vm_page_dirty(m);
|
||||
vm_page_lock(m);
|
||||
vm_page_unwire(m, PQ_INACTIVE);
|
||||
vm_page_unwire(m, PQ_LAUNDRY);
|
||||
vm_page_unlock(m);
|
||||
}
|
||||
VM_OBJECT_WUNLOCK(ksobj);
|
||||
|
|
|
|||
Loading…
Reference in a new issue