From f497cda257dff5ab0372595e338904ef592c94a3 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Wed, 6 Apr 2011 16:27:04 +0000 Subject: [PATCH] In vm_daemon(), do not skip processes stopped with SIGSTOP. --- sys/vm/vm_pageout.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 7ffae4e049a1..c2690af2a88e 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -1303,7 +1303,8 @@ vm_pageout_oom(int shortage) thread_lock(td); if (!TD_ON_RUNQ(td) && !TD_IS_RUNNING(td) && - !TD_IS_SLEEPING(td)) { + !TD_IS_SLEEPING(td) && + !TD_IS_SUSPENDED(td)) { thread_unlock(td); breakout = 1; break; @@ -1679,7 +1680,8 @@ vm_daemon() thread_lock(td); if (!TD_ON_RUNQ(td) && !TD_IS_RUNNING(td) && - !TD_IS_SLEEPING(td)) { + !TD_IS_SLEEPING(td) && + !TD_IS_SUSPENDED(td)) { thread_unlock(td); breakout = 1; break;