Messages in this thread | | | Date | Wed, 20 Feb 2002 20:49:55 -0800 | From | kravetz@us ... | Subject | Re: [Lse-tech] [PATCH] O(1) scheduler set_cpus_allowed for non-current tasks |
| |
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/
| |