socsvn commit: r238765 - soc2012/rudot/sys/kern

rudot at FreeBSD.org rudot at FreeBSD.org
Mon Jul 2 07:31:27 UTC 2012


Author: rudot
Date: Mon Jul  2 07:31:25 2012
New Revision: 238765
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=238765

Log:
  fix of kernel panic during buildworld

Modified:
  soc2012/rudot/sys/kern/subr_turnstile.c

Modified: soc2012/rudot/sys/kern/subr_turnstile.c
==============================================================================
--- soc2012/rudot/sys/kern/subr_turnstile.c	Mon Jul  2 07:29:36 2012	(r238764)
+++ soc2012/rudot/sys/kern/subr_turnstile.c	Mon Jul  2 07:31:25 2012	(r238765)
@@ -246,7 +246,7 @@
 		 * If lock holder is actually running or on the run queue
 		 * then we are done.
 		 */
-		if (TD_IS_RUNNING(td) || TD_ON_RUNQ(td)) {
+		if (TD_IS_RUNNING(td) || TD_ON_RUNQ(td) || (td->td_flags & TDF_RACCT_RQ )) {
 			MPASS(td->td_blocked == NULL);
 			thread_unlock(td);
 			return;


More information about the svn-soc-all mailing list