Re: [PATCH repost] sched: export sched_set/getaffinity to modules

From: Sridhar Samudrala
Date: Thu Jul 15 2010 - 01:29:46 EST


On 7/14/2010 5:05 PM, Oleg Nesterov wrote:
On 07/14, Sridhar Samudrala wrote:
OK. So we want to create a thread that is a child of kthreadd, but inherits the cgroup/cpumask
from the caller. How about an exported kthread function kthread_create_in_current_cg()
that does this?
Well. I must admit, this looks a bit strange to me ;)

Instead of exporting sched_xxxaffinity() we export the new function
which calls them. And I don't think this new helper is very useful
in general. May be I am wrong...
If we agree on exporting sched_xxxaffinity() functions, we don't need this new kthread function and we
can do the same in vhost as the original patch did.

Thanks
Sridhar

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