crash with network01.patch (with patch)

Matthew Dillon dillon at apollo.backplane.com
Thu Dec 1 09:59:31 PST 2005


    Ok, try this patch.  It looks like a sleep/wakeup race in the
    serializer in the MP case.

						-Matt

Index: kern/lwkt_serialize.c
===================================================================
RCS file: /cvs/src/sys/kern/lwkt_serialize.c,v
retrieving revision 1.8
diff -u -r1.8 lwkt_serialize.c
--- kern/lwkt_serialize.c	23 Nov 2005 22:54:22 -0000	1.8
+++ kern/lwkt_serialize.c	1 Dec 2005 17:52:57 -0000
@@ -194,6 +194,7 @@
 {
     lwkt_serialize_t s = info;
     crit_enter();
+    tsleep_interlock(s);
     if (atomic_intr_cond_test(&s->interlock) != 0)
 	    tsleep(s, 0, "slize", 0);
     crit_exit();





More information about the Bugs mailing list