Re: [PATCH V2 9/9] vhost: use kernel_worker to check RLIMITs and inherit v2 cgroups

2021-10-04 Thread Michael S. Tsirkin
On Tue, Sep 21, 2021 at 04:52:18PM -0500, Mike Christie wrote: > For vhost workers we use the kthread API which inherit's its values from > and checks against the kthreadd thread. This results in cgroups v2 not > working and the wrong RLIMITs being checked. This patch has us use the >

[PATCH V2 9/9] vhost: use kernel_worker to check RLIMITs and inherit v2 cgroups

2021-09-21 Thread Mike Christie
For vhost workers we use the kthread API which inherit's its values from and checks against the kthreadd thread. This results in cgroups v2 not working and the wrong RLIMITs being checked. This patch has us use the kernel_copy_process function which will inherit its values/checks from the thread