Re: Bug in scheduler when using rt_mutex

From: Yong Zhang
Date: Wed Jan 19 2011 - 01:09:33 EST


On Wed, Jan 19, 2011 at 1:40 PM, Mike Galbraith <efault@xxxxxx> wrote:
> On Wed, 2011-01-19 at 12:35 +0800, Yong Zhang wrote:
>
>> cfs_rq->curr != se is always true.
>
> If that were always true, we'd illegally enqueue a running task.

I'm sorry that I'm not express myself correctly.

The conclusion of (cfs_rq->curr != se is always true) is not
self-contained. IOW, it's based on one condition which is
(task_of(se) != rq->curr). So what I want to say is:
task_of(se) != rq->curr ==> cfs_rq_of(se)->curr != se
So,
!running ==> cfs_rq_of(se)->curr != se

Is this more clear?

Thanks,
Yong

--
Only stand for myself
--
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/