From mboxrd@z Thu Jan 1 00:00:00 1970 From: Asias He Subject: [PATCH 4/4] tcm_vhost: Flush vhost_work in vhost_scsi_flush() Date: Tue, 12 Mar 2013 10:42:51 +0800 Message-ID: <1363056171-5854-5-git-send-email-asias@redhat.com> References: <1363056171-5854-1-git-send-email-asias@redhat.com> Cc: Paolo Bonzini , Stefan Hajnoczi , "Michael S. Tsirkin" , Rusty Russell , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, target-devel@vger.kernel.org, Asias He To: Nicholas Bellinger Return-path: In-Reply-To: <1363056171-5854-1-git-send-email-asias@redhat.com> Sender: target-devel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org We also need to flush the vhost_works. One is the completion vhost_work, the other is event vhost_work. Signed-off-by: Asias He Reviewed-by: Stefan Hajnoczi --- drivers/vhost/tcm_vhost.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/vhost/tcm_vhost.c b/drivers/vhost/tcm_vhost.c index 61093d1..c5157cd 100644 --- a/drivers/vhost/tcm_vhost.c +++ b/drivers/vhost/tcm_vhost.c @@ -953,6 +953,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) -- 1.8.1.4