Thread (115 messages) 115 messages, 7 authors, 2010-08-04

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

From: Sridhar Samudrala <hidden>
Date: 2010-07-15 05:29:42
Also in: kvm, lkml

On 7/14/2010 5:05 PM, Oleg Nesterov wrote:
On 07/14, Sridhar Samudrala wrote:
   
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help