On Thu, 2010-07-01 at 16:53 +0200, Tejun Heo wrote:I think so. Does it (Tejun's kthread_clone() patch) also inherit the cgroup of the caller? or do we still need the explicit
Hello,I thought the whole reason there was threadd was to avoid the
On 07/01/2010 04:46 PM, Oleg Nesterov wrote:
Hmmm, indeed. It makes the attribute inheritance work but circumventsIt might be a good idea to make the function take extra clone flagsThis makes kthread_stop() work. Otherwise the new thread is just
but anyways once created cloned task can be treated the same way as
other kthreads, so nothing else needs to be changed.
the CLONE_VM child of the caller, and the caller is the user-mode
task doing ioctl() ?
the whole reason there is kthreadd.
inheritance? So avoiding the avoiding of inheritance seems like the goal
here, no?