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>
Sat, 8 Oct 2016 02:13:41 +0000 (19:13 -0700)
commit2c9e29840fbb252e59c3024c92bed4837277d8bf
treec4439a4435dd8a75e914b4af6275700f79d65521
parente1ea8b243e0eeb23a3181ea4ba7c273ac2f7048a
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