PERFORCE change 183667 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Sun Sep 12 13:29:37 UTC 2010
http://p4web.freebsd.org/@@183667?ac=10
Change 183667 by trasz at trasz_victim on 2010/09/12 13:29:15
Move decreasing a thread count to a more appropriate place.
Affected files ...
.. //depot/projects/soc2009/trasz_limits/sys/kern/kern_thr.c#9 edit
.. //depot/projects/soc2009/trasz_limits/sys/kern/kern_thread.c#8 edit
Differences ...
==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_thr.c#9 (text+ko) ====
@@ -295,6 +295,10 @@
kern_umtx_wake(td, uap->state, INT_MAX, 0);
}
+#ifdef CONTAINERS
+ rusage_sub(p, RUSAGE_NTHR, 1);
+#endif
+
PROC_LOCK(p);
tdsigcleanup(td);
PROC_SLOCK(p);
@@ -310,9 +314,6 @@
}
PROC_SUNLOCK(p);
PROC_UNLOCK(p);
-#ifdef CONTAINERS
- rusage_sub(p, RUSAGE_NTHR, 1);
-#endif
return (0);
}
==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_thread.c#8 (text+ko) ====
More information about the p4-projects
mailing list