Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72c77539 authored by Asias He's avatar Asias He Committed by Nicholas Bellinger
Browse files

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: default avatarAsias He <asias@redhat.com>
Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Acked-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 038e0af4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)