[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] xen/netback: cleanup init and deinit code



On 21.10.19 07:27, Juergen Gross wrote:
Do some cleanup of the netback init and deinit code:

- add an omnipotent queue deinit function usable from
   xenvif_disconnect_data() and the error path of xenvif_connect_data()
- only install the irq handlers after initializing all relevant items
   (especially the kthreads related to the queue)
- there is no need to use get_task_struct() after creating a kthread
   and using put_task_struct() again after having stopped it.
- use kthread_run() instead of kthread_create() to spare the call of
   wake_up_process().

Signed-off-by: Juergen Gross <jgross@xxxxxxxx>

Sorry, forgot to add the "Reviewed-by:" of Paul. Will resend.


Juergen

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.