vhost: simplify work flushing
authorJason Wang <jasowang@redhat.com>
Tue, 26 Apr 2016 02:14:32 +0000 (22:14 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Aug 2016 18:44:50 +0000 (21:44 +0300)
commit7235acdb1144460d9f520f0d931f3cbb79eb244c
tree3dfa5687299d67780a5b8416303e37c028d5c8e0
parent523d939ef98fd712632d93a5a2b588e477a7565e
vhost: simplify work flushing

We used to implement the work flushing through tracking queued seq,
done seq, and the number of flushing. This patch simplify this by just
implement work flushing through another kind of vhost work with
completion. This will be used by lockless enqueuing patch.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c