kernel - Require pages to be PQ_ACTIVE for quick vm_page soft refs
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 12 Feb 2020 20:20:47 +0000 (12:20 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 12 Feb 2020 20:25:08 +0000 (12:25 -0800)
commit68cf8881a217fbdd7668383494fad7ccc0025703
tree4237014c302d01d1b2f63963715488a38696d7f9
parentd7cc02141a7d698de571676b34089de08784bd1e
kernel - Require pages to be PQ_ACTIVE for quick vm_page soft refs

* Require the a VM page be ACTIVE when allowing a quick soft ref
  on it for a vm_fault().  If the page is not ACTIVE, the fault will
  access it normally and activate it.

  Previously the page could be ACTIVE or INACTIVE.

* This ensures that pages often-referenced by vm_fault do not accidently
  flow through states and get freed prematurely, causing light paging
  to unnecessarily stall active processes.
sys/vm/vm_fault.c