Skip to content

Commit 72c7753

Browse files
Asias HeNicholas Bellinger
authored andcommitted
tcm_vhost: Flush vhost_work in vhost_scsi_flush()
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>
1 parent 038e0af commit 72c7753

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/vhost/tcm_vhost.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,7 @@ static void vhost_scsi_flush(struct vhost_scsi *vs)
941941

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

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

0 commit comments

Comments
 (0)