Re: [PATCH] SysRq-n changes RT tasks to normal

From: Ingo Molnar
Date: Fri Oct 29 2004 - 06:37:50 EST



* Måns Rullgård <mru@xxxxxxxxxxxxx> wrote:

> + for_each_process (p) {
> + if (!rt_task(p))
> + continue;
> +
> + read_lock_irq(&tasklist_lock);
> + rq = task_rq_lock(p, &flags);

you must take the tasklist_lock outside the for_each_process().

otherwise, looks good.

Ingo
-
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/