Re: [PATCH v3 4/9] vhost: Add kthread support in function vhost_worker_create

2024-11-26 Thread Cindy Lu
On Wed, Nov 27, 2024 at 5:20 AM wrote: > > On 11/5/24 1:25 AM, Cindy Lu wrote: > > static struct vhost_worker *vhost_worker_create(struct vhost_dev *dev) > > { > > struct vhost_worker *worker; > > - struct vhost_task *vtsk; > > + struct vhost_task *vtsk = NULL; > > + struct tas

Re: [PATCH v3 4/9] vhost: Add kthread support in function vhost_worker_create

2024-11-26 Thread michael . christie
On 11/5/24 1:25 AM, Cindy Lu wrote: > static struct vhost_worker *vhost_worker_create(struct vhost_dev *dev) > { > struct vhost_worker *worker; > - struct vhost_task *vtsk; > + struct vhost_task *vtsk = NULL; > + struct task_struct *task = NULL; > char name[TASK_COMM_LEN];

Re: [PATCH v3 4/9] vhost: Add kthread support in function vhost_worker_create

2024-11-06 Thread Cindy Lu
On Tue, Nov 5, 2024 at 5:36 PM Jason Wang wrote: > > On Tue, Nov 5, 2024 at 3:27 PM Cindy Lu wrote: > > > > Restored the previous functions kthread_wakeup and kthread_stop. > > Also add a new structure, vhost_task_fn. The function vhost_worker_create > > Will initializes this structure based on t

Re: [PATCH v3 4/9] vhost: Add kthread support in function vhost_worker_create

2024-11-05 Thread Jason Wang
On Tue, Nov 5, 2024 at 3:27 PM Cindy Lu wrote: > > Restored the previous functions kthread_wakeup and kthread_stop. > Also add a new structure, vhost_task_fn. The function vhost_worker_create > Will initializes this structure based on the value of inherit_owner. > > Signed-off-by: Cindy Lu > ---

[PATCH v3 4/9] vhost: Add kthread support in function vhost_worker_create

2024-11-05 Thread Cindy Lu
Restored the previous functions kthread_wakeup and kthread_stop. Also add a new structure, vhost_task_fn. The function vhost_worker_create Will initializes this structure based on the value of inherit_owner. Signed-off-by: Cindy Lu --- drivers/vhost/vhost.c | 71 +