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:
Alan Cox 2018-01-04 03:16:32 +00:00
parent 7e792cb8f5
commit 36ca312db5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327538

View file

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