提交 71f1e45a 编写于 作者: M Michael S. Tsirkin 提交者: Nicholas Bellinger

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: NMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
上级 8b4b0dcb
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册