Skip to content

Commit

Permalink
tcm_vhost: Flush vhost_work in vhost_scsi_flush()
Browse files Browse the repository at this point in the history
We also need to flush the vhost_works. It is the completion vhost_work
currently.

Signed-off-by: Asias He <asias@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
  • Loading branch information
Asias He authored and Nicholas Bellinger committed Mar 18, 2013
1 parent 038e0af commit 72c7753
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/vhost/tcm_vhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,7 @@ static void vhost_scsi_flush(struct vhost_scsi *vs)

for (i = 0; i < VHOST_SCSI_MAX_VQ; i++)
vhost_scsi_flush_vq(vs, i);
vhost_work_flush(&vs->dev, &vs->vs_completion_work);
}

static int vhost_scsi_set_features(struct vhost_scsi *vs, u64 features)
Expand Down

0 comments on commit 72c7753

Please sign in to comment.