Skip to content

Commit

Permalink
tcm_vhost: fix pr_err on early kick
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael S. Tsirkin authored and Nicholas Bellinger committed Jan 31, 2013
1 parent 8b4b0dc commit 71f1e45
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/vhost/tcm_vhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 71f1e45

Please sign in to comment.