Skip to content

Commit 27eca18

Browse files
mikechristiemstsirkin
authored andcommitted
vhost: remove vhost_work_queue
vhost_work_queue is no longer used. Each driver is using the poll or vq based queueing, so remove vhost_work_queue. Signed-off-by: Mike Christie <michael.christie@oracle.com> Message-Id: <20230626232307.97930-13-michael.christie@oracle.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
1 parent 0a3eac5 commit 27eca18

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

drivers/vhost/vhost.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,6 @@ static bool vhost_worker_queue(struct vhost_worker *worker,
255255
return true;
256256
}
257257

258-
bool vhost_work_queue(struct vhost_dev *dev, struct vhost_work *work)
259-
{
260-
return vhost_worker_queue(dev->worker, work);
261-
}
262-
EXPORT_SYMBOL_GPL(vhost_work_queue);
263-
264258
bool vhost_vq_work_queue(struct vhost_virtqueue *vq, struct vhost_work *work)
265259
{
266260
return vhost_worker_queue(vq->worker, work);

drivers/vhost/vhost.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,14 @@ struct vhost_poll {
4444
struct vhost_virtqueue *vq;
4545
};
4646

47-
void vhost_work_init(struct vhost_work *work, vhost_work_fn_t fn);
48-
bool vhost_work_queue(struct vhost_dev *dev, struct vhost_work *work);
49-
5047
void vhost_poll_init(struct vhost_poll *poll, vhost_work_fn_t fn,
5148
__poll_t mask, struct vhost_dev *dev,
5249
struct vhost_virtqueue *vq);
5350
int vhost_poll_start(struct vhost_poll *poll, struct file *file);
5451
void vhost_poll_stop(struct vhost_poll *poll);
5552
void vhost_poll_queue(struct vhost_poll *poll);
53+
54+
void vhost_work_init(struct vhost_work *work, vhost_work_fn_t fn);
5655
void vhost_dev_flush(struct vhost_dev *dev);
5756

5857
struct vhost_log {

0 commit comments

Comments
 (0)