Re: [Lse-tech] O(1) scheduler: lockup with set_cpus_allowed

Erich Focht (focht@ess.nec.de)
Fri, 5 Apr 2002 14:33:29 +0200 (MEST)


On Fri, 5 Apr 2002, Andi Kleen wrote:

> You could just use get_task_struct/free_task_struct and drop the read lock
> to make sure the target doesn't go way

Thanks! That solves my problem. So maybe Ingo just extends the comment to
set_cpus_allowed() to warn from holding the tasklist_lock such that others
don't run into the same problem.

Regards,
Erich

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