Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 2003 11:44:50 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 28721 for review
Message-ID:  <200304101844.h3AIioEx002648@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28721

Change 28721 by jhb@jhb_laptop on 2003/04/10 11:44:16

	Add an eerie assertion that if it proves true will justify the
	removal of sched_lock around the TDF_DEADLKTREAT flag.

Affected files ...

.. //depot/projects/smpng/sys/kern/kern_lock.c#24 edit

Differences ...

==== //depot/projects/smpng/sys/kern/kern_lock.c#24 (text+ko) ====

@@ -229,8 +229,10 @@
 	error = 0;
 	if (td == NULL)
 		thr = LK_KERNPROC;
-	else
+	else {
+		MPASS(td == curthread);
 		thr = td;
+	}
 
 	if ((flags & LK_INTERNAL) == 0)
 		mtx_lock(lkp->lk_interlock);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304101844.h3AIioEx002648>