Re: [PATCH v8 5/8] vhost: Reintroduce kthread mode support in vhost

2025-04-08 Thread Cindy Lu
On Tue, Apr 8, 2025 at 12:04 AM Mike Christie wrote: > > On 3/28/25 5:02 AM, Cindy Lu wrote: > > +static int vhost_kthread_worker_create(struct vhost_worker *worker, > > +struct vhost_dev *dev, const char > > *name) > > +{ > > + struct task_struct *task; >

Re: [PATCH v8 5/8] vhost: Reintroduce kthread mode support in vhost

2025-04-07 Thread Mike Christie
On 3/28/25 5:02 AM, Cindy Lu wrote: > +static int vhost_kthread_worker_create(struct vhost_worker *worker, > +struct vhost_dev *dev, const char *name) > +{ > + struct task_struct *task; > + u32 id; > + int ret; > + > + task = kthread_create(vhost_

Re: [PATCH v8 5/8] vhost: Reintroduce kthread mode support in vhost

2025-04-06 Thread Cindy Lu
On Tue, Apr 1, 2025 at 9:51 PM Stefano Garzarella wrote: > > On Fri, Mar 28, 2025 at 06:02:49PM +0800, Cindy Lu wrote: > >This commit restores the previously removed functions kthread > >wake/stop/create, and use ops structure vhost_worker_ops to > >manage worker wakeup, stop and creation. The fun

Re: [PATCH v8 5/8] vhost: Reintroduce kthread mode support in vhost

2025-04-01 Thread Stefano Garzarella
On Fri, Mar 28, 2025 at 06:02:49PM +0800, Cindy Lu wrote: This commit restores the previously removed functions kthread wake/stop/create, and use ops structure vhost_worker_ops to manage worker wakeup, stop and creation. The function vhost_worker_create initializes these ops pointers based on the