From 208e7b92ca97cec7c94777e3935d65b7f13aed71 Mon Sep 17 00:00:00 2001 From: kib Date: Mon, 7 Dec 2015 11:12:03 +0000 Subject: MFC r290915: Do not skip a process which has inhibited thread due to the swap-out, in the OOM selection loop. --- sys/vm/vm_pageout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 2cc738d..6d73883 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -1570,7 +1570,8 @@ vm_pageout_oom(int shortage) if (!TD_ON_RUNQ(td) && !TD_IS_RUNNING(td) && !TD_IS_SLEEPING(td) && - !TD_IS_SUSPENDED(td)) { + !TD_IS_SUSPENDED(td) && + !TD_IS_SWAPPED(td)) { thread_unlock(td); breakout = 1; break; -- cgit v1.1