mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-24 23:04:17 +08:00
vhost: correct the related warning message
Fixes: 'commitd588cf8f61
("target: Fix se_tpg_tfo->tf_subsys regression + remove tf_subsystem")' 'commitcbbd26b8b1
("[iov_iter] new primitives - copy_from_iter_full() and friends")' Signed-off-by: Yan Wang <wangyan122@huawei.com> Reviewed-by: Jun Piao <piaojun@huawei.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
4b86713236
commit
a691ffb46e
@ -889,7 +889,7 @@ vhost_scsi_get_req(struct vhost_virtqueue *vq, struct vhost_scsi_ctx *vc,
|
||||
|
||||
if (unlikely(!copy_from_iter_full(vc->req, vc->req_size,
|
||||
&vc->out_iter))) {
|
||||
vq_err(vq, "Faulted on copy_from_iter\n");
|
||||
vq_err(vq, "Faulted on copy_from_iter_full\n");
|
||||
} else if (unlikely(*vc->lunp != 1)) {
|
||||
/* virtio-scsi spec requires byte 0 of the lun to be 1 */
|
||||
vq_err(vq, "Illegal virtio-scsi lun: %u\n", *vc->lunp);
|
||||
@ -1441,7 +1441,7 @@ vhost_scsi_set_endpoint(struct vhost_scsi *vs,
|
||||
se_tpg = &tpg->se_tpg;
|
||||
ret = target_depend_item(&se_tpg->tpg_group.cg_item);
|
||||
if (ret) {
|
||||
pr_warn("configfs_depend_item() failed: %d\n", ret);
|
||||
pr_warn("target_depend_item() failed: %d\n", ret);
|
||||
kfree(vs_tpg);
|
||||
mutex_unlock(&tpg->tv_tpg_mutex);
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user