aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTonghao Zhang <xiangxia.m.yue@gmail.com>2018-01-09 10:38:22 -0500
committerMichael S. Tsirkin <mst@redhat.com>2018-02-01 09:26:44 -0500
commitac964d7a594290e230f8c1038934692e30c76fc8 (patch)
tree29d16069ddab7ef16c6c965848465a78f748553d
parentdaf2a5016983a1a533417bcdc729bd2b19af1b68 (diff)
vhost: Remove the unused variable.
The patch (7235acdb1) changed the way of the work flushing in which the queued seq, done seq, and the flushing are not used anymore. Then remove them now. Fixes: 7235acdb1 ("vhost: simplify work flushing") Cc: Jason Wang <jasowang@redhat.com> Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--drivers/vhost/vhost.c1
-rw-r--r--drivers/vhost/vhost.h4
2 files changed, 0 insertions, 5 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index 5727b186b3ca..67fa3d153072 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -181,7 +181,6 @@ void vhost_work_init(struct vhost_work *work, vhost_work_fn_t fn)
181{ 181{
182 clear_bit(VHOST_WORK_QUEUED, &work->flags); 182 clear_bit(VHOST_WORK_QUEUED, &work->flags);
183 work->fn = fn; 183 work->fn = fn;
184 init_waitqueue_head(&work->done);
185} 184}
186EXPORT_SYMBOL_GPL(vhost_work_init); 185EXPORT_SYMBOL_GPL(vhost_work_init);
187 186
diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h
index 79c6e7a60a5e..749fe13e061c 100644
--- a/drivers/vhost/vhost.h
+++ b/drivers/vhost/vhost.h
@@ -20,10 +20,6 @@ typedef void (*vhost_work_fn_t)(struct vhost_work *work);
20struct vhost_work { 20struct vhost_work {
21 struct llist_node node; 21 struct llist_node node;
22 vhost_work_fn_t fn; 22 vhost_work_fn_t fn;
23 wait_queue_head_t done;
24 int flushing;
25 unsigned queue_seq;
26 unsigned done_seq;
27 unsigned long flags; 23 unsigned long flags;
28}; 24};
29 25