mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
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>
This commit is contained in:
parent
8b4b0dcbf7
commit
71f1e45aa9
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue