Re: [PATCH v3] KVM: Move VM's worker kthreads back to the original cgroup before exiting.
From: Paolo Bonzini
Date: Sat Feb 19 2022 - 02:55:50 EST
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