Module Name:    src
Committed By:   matt
Date:           Thu Feb 17 18:50:02 UTC 2011

Modified Files:
        src/sys/kern: kern_lwp.c

Log Message:
When freeing a lwp, make sure it's biglock count is 0.


To generate a diff of this commit:
cvs rdiff -u -r1.154 -r1.155 src/sys/kern/kern_lwp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/kern_lwp.c
diff -u src/sys/kern/kern_lwp.c:1.154 src/sys/kern/kern_lwp.c:1.155
--- src/sys/kern/kern_lwp.c:1.154	Mon Jan 17 08:26:58 2011
+++ src/sys/kern/kern_lwp.c	Thu Feb 17 18:50:02 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_lwp.c,v 1.154 2011/01/17 08:26:58 matt Exp $	*/
+/*	$NetBSD: kern_lwp.c,v 1.155 2011/02/17 18:50:02 matt Exp $	*/
 
 /*-
  * Copyright (c) 2001, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -211,7 +211,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.154 2011/01/17 08:26:58 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.155 2011/02/17 18:50:02 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_lockdebug.h"
@@ -1076,6 +1076,7 @@
 
 	KASSERT(SLIST_EMPTY(&l->l_pi_lenders));
 	KASSERT(l->l_inheritedprio == -1);
+	KASSERT(l->l_blcnt == 0);
 	kdtrace_thread_dtor(NULL, l);
 	if (!recycle)
 		pool_cache_put(lwp_cache, l);

Reply via email to