DragonFly bugs List (threaded) for 2005-12
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: crash with network01.patch (with patch)
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();
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]