Author: trasz
Date: Wed Apr  6 16:27:04 2011
New Revision: 220387
URL: http://svn.freebsd.org/changeset/base/220387

Log:
  In vm_daemon(), do not skip processes stopped with SIGSTOP.

Modified:
  head/sys/vm/vm_pageout.c

Modified: head/sys/vm/vm_pageout.c
==============================================================================
--- head/sys/vm/vm_pageout.c    Wed Apr  6 16:24:24 2011        (r220386)
+++ head/sys/vm/vm_pageout.c    Wed Apr  6 16:27:04 2011        (r220387)
@@ -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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to