Re: [Lse-tech] [PATCH] O(1) scheduler set_cpus_allowed for non-current tasks

From: kravetz@us.ibm.com
Date: Wed Feb 20 2002 - 23:49:55 EST


On Wed, Feb 20, 2002 at 06:57:05PM +0100, Erich Focht wrote:
> Hi,
>
> this is another attempt to overcome a limitation of the
> O(1) scheduler: set_cpus_allowed() can only be called for current
> processes.

Great! I'm glad someone is looking into this. Didn't look at
your patch too closely, but one obvious issue comes to mind.
How does the caller of set_cpus_allowed() lock down the specified
task so that set_cpus_allowed() can be sure it is still valid?
Obviously, this only becomes an issue when you open up the
routine to tasks other than 'current' as you have done. Do you
want to do task validation within set_cpus_allowed() with the
tasklist_lock held?

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



This archive was generated by hypermail 2b29 : Sat Feb 23 2002 - 21:00:29 EST