vhost_task: Handle SIGKILL by flushing work and exiting
[linux-block.git] / drivers / vhost / vhost.h
index 91ade037f08e6cb26ff5859a3a025b54a31ca111..bb75a292d50cd3f96bc6be019574a6d6379523d6 100644 (file)
@@ -28,12 +28,14 @@ struct vhost_work {
 
 struct vhost_worker {
        struct vhost_task       *vtsk;
+       struct vhost_dev        *dev;
        /* Used to serialize device wide flushing with worker swapping. */
        struct mutex            mutex;
        struct llist_head       work_list;
        u64                     kcov_handle;
        u32                     id;
        int                     attachment_cnt;
+       bool                    killed;
 };
 
 /* Poll a file (eventfd or socket) */