kernel - Fix low memory process kill bug
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 8 Oct 2016 02:13:41 +0000 (19:13 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 16 Oct 2016 21:41:50 +0000 (14:41 -0700)
commite4e51a624ca3da53f705d75f5e55e6de9829a8c5
treebbb41665f9ee591848ebf8fad995c03bdb21da7f
parent8e73479e3c0ecf0d527bad07de2065334da5e59b
kernel - Fix low memory process kill bug

* If a process is being killed, don't let it stay put in a low-memory
  vm_wait loop in kernel mode, it will never exit.

* Try to improve the chances that we can dump by adjusting an assertion in
  the user thread scheduler.
sys/kern/usched_dfly.c
sys/vm/vm_fault.c
sys/vm/vm_page.c
sys/vm/vm_pageout.c