diff options
author | trasz <trasz@FreeBSD.org> | 2011-04-06 16:27:04 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2011-04-06 16:27:04 +0000 |
commit | 440cd5face8a8098f95d7e1a290efcde8e22adcd (patch) | |
tree | 03ead4cbcf89d74545b9afc25f1c304c876837a1 /sys/vm/vm_pageout.c | |
parent | 71afa1f8655bd682a2cce255c7b4b7463f3d3e2b (diff) | |
download | FreeBSD-src-440cd5face8a8098f95d7e1a290efcde8e22adcd.zip FreeBSD-src-440cd5face8a8098f95d7e1a290efcde8e22adcd.tar.gz |
In vm_daemon(), do not skip processes stopped with SIGSTOP.
Diffstat (limited to 'sys/vm/vm_pageout.c')
-rw-r--r-- | sys/vm/vm_pageout.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 7ffae4e..c2690af 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 @@ again: 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; |