[lkml]   [2007]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Q: a bogus task_running() check in try_to_wake_up() ?

* Oleg Nesterov <> wrote:

> try_to_wake_up:
> if (p->se.on_rq)
> goto out_running;
> ...
> if (unlikely(task_running(rq, p)))
> goto out_activate;
> How it possible that rq->curr has on_rq == 0 ?
> AFAICS, this can only happen if this task is rq->idle. But idle
> threads should not sleep, we have a special "scheduling from the idle
> thread!" check in schedule().

it's also possible if an arch uses __ARCH_WANT_INTERRUPTS_ON_CTXSW,

[ btw., we dont have a special "scheduling from the idle thread" check
in schedule() anymore, it's now in kernel/sched_idletask.c :-) ]

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-07-17 21:09    [W:0.031 / U:0.044 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site