Skip to content

Commit ac964d7

Browse files
hao022mstsirkin
authored andcommitted
vhost: Remove the unused variable.
The patch (7235acd) 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: 7235acd ("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>
1 parent daf2a50 commit ac964d7

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

drivers/vhost/vhost.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ void vhost_work_init(struct vhost_work *work, vhost_work_fn_t fn)
181181
{
182182
clear_bit(VHOST_WORK_QUEUED, &work->flags);
183183
work->fn = fn;
184-
init_waitqueue_head(&work->done);
185184
}
186185
EXPORT_SYMBOL_GPL(vhost_work_init);
187186

drivers/vhost/vhost.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ typedef void (*vhost_work_fn_t)(struct vhost_work *work);
2020
struct vhost_work {
2121
struct llist_node node;
2222
vhost_work_fn_t fn;
23-
wait_queue_head_t done;
24-
int flushing;
25-
unsigned queue_seq;
26-
unsigned done_seq;
2723
unsigned long flags;
2824
};
2925

0 commit comments

Comments
 (0)