mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327538
|
@ -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