svn commit: r220387 - head/sys/vm

Edward Tomasz Napierala trasz at FreeBSD.org
Wed Apr 6 16:27:05 UTC 2011


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;


More information about the svn-src-all mailing list