OSDN Git Service

vhost: move worker thread fields to new struct
authorMike Christie <michael.christie@oracle.com>
Fri, 10 Mar 2023 22:03:31 +0000 (16:03 -0600)
committerChristian Brauner <brauner@kernel.org>
Thu, 23 Mar 2023 11:45:36 +0000 (12:45 +0100)
commit1a5f8090c6de99306f4212dc7adfc6189a616eb9
treec3115035eef3c9a317499a19832c84ea0ab4cd34
parente297cd54b3f81d652456ae6cb93941fc6b5c6683
vhost: move worker thread fields to new struct

This is just a prep patch. It moves the worker related fields to a new
vhost_worker struct and moves the code around to create some helpers that
will be used in the next patch.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
drivers/vhost/vhost.c
drivers/vhost/vhost.h