Give me a moment :-) I'm working on it.
> If the patch is trivial enough, we can even push for inclusion.
>
> > Yep. Right now (2.1.123) has a bug with the way SCHED_YIELD is
> > handled: an RT process can end up yielding to a lower priority
> > process. That's contrary to the POSIX.4 spec.
>
> Aiee, I hadn't even seen this one... I have no clue
> how to fix this (except with gross inefficiencies)
> within the frame of the current system.
> To do that, we'd have to keep a list of RT processes on the queue,
> effectively reducing us to the separate-RT-runqueue option.
> QED.
Actually, I submitted a pretty simple patch Linus prior to 2.1.123
coming out, but I didn't hear anything. It's appended. I don't think
we need anything more complicated.
Regards,
Richard....
--- sched.c~ Sat Sep 5 02:13:29 1998
+++ sched.c Thu Sep 24 12:31:59 1998
@@ -272,6 +272,8 @@
if (policy & SCHED_YIELD) {
p->policy = policy & ~SCHED_YIELD;
+ if (p->policy != SCHED_OTHER)
+ return 1000 + p->rt_priority;
return 0;
}
-
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/