Re: [PATCH v2 6/7] vhost: Add kthread support in function vhost_worker_create

2024-10-14 Thread Cindy Lu
On Tue, 15 Oct 2024 at 05:02, Mike Christie wrote: > > On 10/3/24 8:58 PM, Cindy Lu wrote: > > +static struct vhost_worker *vhost_worker_create(struct vhost_dev *dev) > > +{ > > + if (enforce_inherit_owner) > > + return vhost_worker_create_task(dev); > > + else > > +

Re: [PATCH v2 6/7] vhost: Add kthread support in function vhost_worker_create

2024-10-14 Thread Mike Christie
On 10/3/24 8:58 PM, Cindy Lu wrote: > +static struct vhost_worker *vhost_worker_create(struct vhost_dev *dev) > +{ > + if (enforce_inherit_owner) > + return vhost_worker_create_task(dev); > + else > + return vhost_worker_create_kthread(dev); > +} The reason we are i

[PATCH v2 6/7] vhost: Add kthread support in function vhost_worker_create

2024-10-03 Thread Cindy Lu
Split the function vhost_worker_create to support both task and kthread Added back the previous old function vhost_worker_create and rename it to vhost_worker_create_khtread to support the khtread. The new vhost_worker_create will be selected which to use based on the value of the parameter. the