Re: [PATCH v3 3/9] vhost: Add the cgroup related function

2024-11-26 Thread Cindy Lu
On Mon, Nov 25, 2024 at 11:22 PM Mike Christie wrote: > > On 11/5/24 1:25 AM, Cindy Lu wrote: > > +static int vhost_attach_cgroups(struct vhost_dev *dev) > > +{ > > + struct vhost_worker *worker; > > + unsigned long i; > > + int ret; > > + > > + /* > > + * Free the default wor

Re: [PATCH v3 3/9] vhost: Add the cgroup related function

2024-11-25 Thread Mike Christie
On 11/5/24 1:25 AM, Cindy Lu wrote: > +static int vhost_attach_cgroups(struct vhost_dev *dev) > +{ > + struct vhost_worker *worker; > + unsigned long i; > + int ret; > + > + /* > + * Free the default worker we created and cleanup workers userspace > + * created but couldn'

[PATCH v3 3/9] vhost: Add the cgroup related function

2024-11-04 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_worker_cgroups_kthread(). This is because of the change in struct dev->worker_xa. The old function was remove in commit 6e890c5d5021 ("vhost: use vhost_tas