Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Feb 2011 13:17:54 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 188777 for review
Message-ID:  <201102131317.p1DDHsjR054481@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@188777?ac=10

Change 188777 by trasz@trasz_victim on 2011/02/13 13:17:28

	When enforcing an RSS limit, we don't want to skip processes stopped
	with SIGSTOP or SIGTSTP.

Affected files ...

.. //depot/projects/soc2009/trasz_limits/sys/vm/vm_pageout.c#28 edit

Differences ...

==== //depot/projects/soc2009/trasz_limits/sys/vm/vm_pageout.c#28 (text+ko) ====

@@ -1306,7 +1306,8 @@
 			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;
@@ -1683,7 +1684,8 @@
 				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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102131317.p1DDHsjR054481>