Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Aug 2006 20:44:07 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 103907 for review
Message-ID:  <200608142044.k7EKi7Bu027398@repoman.freebsd.org>

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

Change 103907 by jhb@jhb_mutex on 2006/08/14 20:43:31

	Sleep bad.

Affected files ...

.. //depot/projects/smpng/sys/modules/crash2/crash2.c#13 edit

Differences ...

==== //depot/projects/smpng/sys/modules/crash2/crash2.c#13 (text+ko) ====

@@ -107,7 +107,7 @@
 {
 
 	mtx_lock(mtxen[thread % 4]);
-	tsleep(mtxen, 0, "mtx_dead", hz/10);
+	DELAY(500);
 	mtx_lock(mtxen[(thread + 1) % 4]);
 }
 CRASH2_EVENT("mutex cycle", mtx_deadlock, mtx_deadlock, mtx_deadlock,



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