Re: [PATCH V6 06/10] fork: add helpers to clone a process for kernel use

2021-12-17 Thread Eric W. Biederman
Mike Christie writes: > The vhost layer is creating kthreads to execute IO and management > operations. These threads need to share a mm with a userspace thread, > inherit cgroups, and we would like to have the thread accounted for > under the userspace thread's rlimit nproc value so a user can't

[PATCH V6 06/10] fork: add helpers to clone a process for kernel use

2021-11-29 Thread Mike Christie
The vhost layer is creating kthreads to execute IO and management operations. These threads need to share a mm with a userspace thread, inherit cgroups, and we would like to have the thread accounted for under the userspace thread's rlimit nproc value so a user can't overwhelm the system with threa