lkml.org 
[lkml]   [2022]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v3] KVM: Move VM's worker kthreads back to the original cgroup before exiting.
From
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

\
 
 \ /
  Last update: 2022-02-19 08:56    [W:0.045 / U:2.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site