PERFORCE change 188777 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Sun Feb 13 13:17:55 UTC 2011
http://p4web.freebsd.org/@@188777?ac=10
Change 188777 by trasz at 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;
More information about the p4-projects
mailing list