Date: Sun, 12 Sep 2010 13:29:36 GMT From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 183667 for review Message-ID: <201009121329.o8CDTal9075007@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@183667?ac=10 Change 183667 by trasz@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) ====
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009121329.o8CDTal9075007>