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

From: Paolo Bonzini
Date: Wed Feb 16 2022 - 14:48:53 EST


On 2/16/22 18:37, Vipin Sharma wrote:
Paolo:
Will you accept a patch which uses real_parent in
kvm_vm_worker_thread() as suggested by Sean, while I figure out the
recommendation from Michal about making kthread_stop() wait on
kernel_wait()?
cgroup_attach_task_all(current->real_parent, current)

Yes, of course.

Paolo