summaryrefslogtreecommitdiff
path: root/drivers/vhost
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2013-01-31 15:12:29 +0400
committerNicholas Bellinger <nab@linux-iscsi.org>2013-02-01 01:06:06 +0400
commit71f1e45aa9974926c3eb511ac488119ed59d7a82 (patch)
tree8a9144cad0a69d3d0e084618c1f7f51ef0a80907 /drivers/vhost
parent8b4b0dcbf70d10f3acd6a88fca0679ca711066e0 (diff)
downloadlinux-71f1e45aa9974926c3eb511ac488119ed59d7a82.tar.xz
tcm_vhost: fix pr_err on early kick
It's OK to get kick before backend is set or after it is cleared, we can just ignore it. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/vhost')
-rw-r--r--drivers/vhost/tcm_vhost.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/vhost/tcm_vhost.c b/drivers/vhost/tcm_vhost.c
index b20df5c829f5..22321cf84fbe 100644
--- a/drivers/vhost/tcm_vhost.c
+++ b/drivers/vhost/tcm_vhost.c
@@ -575,10 +575,8 @@ static void vhost_scsi_handle_vq(struct vhost_scsi *vs)
/* Must use ioctl VHOST_SCSI_SET_ENDPOINT */
tv_tpg = vs->vs_tpg;
- if (unlikely(!tv_tpg)) {
- pr_err("%s endpoint not set\n", __func__);
+ if (unlikely(!tv_tpg))
return;
- }
mutex_lock(&vq->mutex);
vhost_disable_notify(&vs->dev, vq);