On 07/14, Sridhar Samudrala wrote:If we agree on exporting sched_xxxaffinity() functions, we don't need this new kthread function and we
OK. So we want to create a thread that is a child of kthreadd, but inherits the cgroup/cpumaskWell. I must admit, this looks a bit strange to me ;)
from the caller. How about an exported kthread function kthread_create_in_current_cg()
that does this?
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...