Messages in this thread | | | Date | Tue, 21 Mar 2000 11:20:36 -0500 (EST) | From | William Montgomery <> | Subject | Re: scheduler ignores need_resched flag in 2.2.x and 2.3.x? |
| |
The scenario you describe _is_ fixed by Ingo's patch, see below:
----------------- in linux/kernel/sched.c - reschedule_idle_slow int this_cpu = smp_processor_id(); struct task_struct *tsk;
- tsk = current; + tsk = cpu_curr(this_cpu); if (preemption_goodness(tsk, p, this_cpu) > 0) tsk->need_resched = 1; -----------------
This eliminates the race and is a bug which should be fixed in 2.2.x.
The latest lowlatency patch can be found at: http://www.redhat.com/~mingo/lowlatency-patches/lowlatency-2.2.15-C0
Wm
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |