Re: [PATCH v3] KVM: Move VM's worker kthreads back to the original cgroup before exiting.

Paolo Bonzini
2022-02-19T07:55:45Z

On 2/19/22 01:30, Sean Christopherson wrote:
>
> So I think this can be:
>
> rcu_read_lock();
> parent = rcu_dereference(current->real_parent);
> get_task_struct(parent);
> rcu_read_unlock();
>
> (void)cgroup_attach_task_all(parent, current);
> put_task_struct(parent);

Yes, I agree.

Paolo