[PATCH] SMP kernel deadlocking on UP boxen

Alexander Viro (viro@math.psu.edu)
Sun, 13 Jan 2002 15:45:06 -0500 (EST)


Still present in -pre11:

diff -urN C2-pre10/kernel/sched.c C2-pre10-resched_task.bork.bork.bork/kernel/sched.c
--- C2-pre10/kernel/sched.c Mon Jan 7 19:33:06 2002
+++ C2-pre10-resched_task.bork.bork.bork/kernel/sched.c Sun Jan 13 15:31:10 2002
@@ -219,7 +219,7 @@
need_resched = p->need_resched;
wmb();
p->need_resched = 1;
- if (!need_resched)
+ if (!need_resched && p->cpu != smp_processor_id())
smp_send_reschedule(p->cpu);
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/