Re: [PATCH v6 2/3] sched/rt: Fix wrong SMP scheduler behavior for equal prio cases

From: Steven Rostedt
Date: Thu Apr 23 2015 - 09:11:08 EST


On Thu, 23 Apr 2015 14:53:27 +0800
pang.xunlei@xxxxxxxxxx wrote:

> > Why not use Peter's idea of instead of checking PREEMPT_ACTIVE, just
> > check if the task is on the runqueue or not. If it scheduled out, it
> > would take itself off the runqueue, if it was preempted by anything, it
> > would still be on the run queue, and according to FIFO, it should still
> > maintain CPU ownership over other tasks of the same prio.
> >
>
> But for yield() or RR scheduling when running out of time slice,
> I think this would be still inappropriate, am I missing something?

Good point, I'll have to look into this a bit more.

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