[PATCH] SMP kernel deadlocking on UP boxen

From: Alexander Viro (viro@math.psu.edu)
Date: Sun Jan 13 2002 - 15:45:06 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/



This archive was generated by hypermail 2b29 : Tue Jan 15 2002 - 21:00:41 EST