Re: [PATCH v8 3/8] vhost: Add the cgroup related function

2025-04-10 Thread Markus Elfring
… > +++ b/drivers/vhost/vhost.c … > +static int vhost_attach_task_to_cgroups(struct vhost_worker *worker) > +{ … > + vhost_worker_queue(worker, &attach.work); > + > + mutex_lock(&worker->mutex); … > + mutex_unlock(&worker->mutex); > + > + return attach.ret; > +} … Under which circu

Re: [PATCH v8 3/8] vhost: Add the cgroup related function

2025-04-04 Thread Stefano Garzarella
On Fri, Mar 28, 2025 at 06:02:47PM +0800, Cindy Lu wrote: Add back the previously removed cgroup function to support the kthread nit: Missing . at the end The biggest change for this part is in vhost_attach_cgroups() and vhost_attach_task_to_cgroups(). The old function was remove in nit: s

[PATCH v8 3/8] vhost: Add the cgroup related function

2025-03-28 Thread Cindy Lu
Add back the previously removed cgroup function to support the kthread The biggest change for this part is in vhost_attach_cgroups() and vhost_attach_task_to_cgroups(). The old function was remove in commit 6e890c5d5021 ("vhost: use vhost_tasks for worker threads") Signed-off-by: Cindy Lu --- d