Skip to content

Commit 652abad

Browse files
aloktiwamstsirkin
authored andcommitted
vhost-scsi: Fix typos and formatting in comments and logs
This patch corrects several minor typos and formatting issues. Changes include: Fixing misspellings like in comments - "explict" -> "explicit" - "infight" -> "inflight", - "with generate" -> "will generate" formatting in logs - Correcting log formatting specifier from "%dd" to "%d" - Adding a missing space in the sysfs emit string to prevent misinterpreted output like "X86_64on ". changing to "X86_64 on " - Cleaning up stray semicolons in struct definition endings These changes improve code readability and consistency. no functionality changes. Signed-off-by: Alok Tiwari <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Stefan Hajnoczi <[email protected]> Reviewed-by: Mike Christie <[email protected]>
1 parent 6f0f3d7 commit 652abad

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

drivers/vhost/scsi.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ struct vhost_scsi_nexus {
152152
struct vhost_scsi_tpg {
153153
/* Vhost port target portal group tag for TCM */
154154
u16 tport_tpgt;
155-
/* Used to track number of TPG Port/Lun Links wrt to explict I_T Nexus shutdown */
155+
/* Used to track number of TPG Port/Lun Links wrt to explicit I_T Nexus shutdown */
156156
int tv_tpg_port_count;
157157
/* Used for vhost_scsi device reference to tpg_nexus, protected by tv_tpg_mutex */
158158
int tv_tpg_vhost_count;
@@ -311,12 +311,12 @@ static void vhost_scsi_init_inflight(struct vhost_scsi *vs,
311311

312312
mutex_lock(&vq->mutex);
313313

314-
/* store old infight */
314+
/* store old inflight */
315315
idx = vs->vqs[i].inflight_idx;
316316
if (old_inflight)
317317
old_inflight[i] = &vs->vqs[i].inflights[idx];
318318

319-
/* setup new infight */
319+
/* setup new inflight */
320320
vs->vqs[i].inflight_idx = idx ^ 1;
321321
new_inflight = &vs->vqs[i].inflights[idx ^ 1];
322322
kref_init(&new_inflight->kref);
@@ -1249,7 +1249,7 @@ vhost_scsi_setup_resp_iovs(struct vhost_scsi_cmd *cmd, struct iovec *in_iovs,
12491249
if (!in_iovs_cnt)
12501250
return 0;
12511251
/*
1252-
* Initiator's normally just put the virtio_scsi_cmd_resp in the first
1252+
* Initiators normally just put the virtio_scsi_cmd_resp in the first
12531253
* iov, but just in case they wedged in some data with it we check for
12541254
* greater than or equal to the response struct.
12551255
*/
@@ -1457,7 +1457,7 @@ vhost_scsi_handle_vq(struct vhost_scsi *vs, struct vhost_virtqueue *vq)
14571457
cmd = vhost_scsi_get_cmd(vq, tag);
14581458
if (IS_ERR(cmd)) {
14591459
ret = PTR_ERR(cmd);
1460-
vq_err(vq, "vhost_scsi_get_tag failed %dd\n", ret);
1460+
vq_err(vq, "vhost_scsi_get_tag failed %d\n", ret);
14611461
goto err;
14621462
}
14631463
cmd->tvc_vq = vq;
@@ -2609,7 +2609,7 @@ static int vhost_scsi_make_nexus(struct vhost_scsi_tpg *tpg,
26092609
return -ENOMEM;
26102610
}
26112611
/*
2612-
* Since we are running in 'demo mode' this call with generate a
2612+
* Since we are running in 'demo mode' this call will generate a
26132613
* struct se_node_acl for the vhost_scsi struct se_portal_group with
26142614
* the SCSI Initiator port name of the passed configfs group 'name'.
26152615
*/
@@ -2915,7 +2915,7 @@ static ssize_t
29152915
vhost_scsi_wwn_version_show(struct config_item *item, char *page)
29162916
{
29172917
return sysfs_emit(page, "TCM_VHOST fabric module %s on %s/%s"
2918-
"on "UTS_RELEASE"\n", VHOST_SCSI_VERSION, utsname()->sysname,
2918+
" on "UTS_RELEASE"\n", VHOST_SCSI_VERSION, utsname()->sysname,
29192919
utsname()->machine);
29202920
}
29212921

@@ -2983,13 +2983,13 @@ static int __init vhost_scsi_init(void)
29832983
vhost_scsi_deregister();
29842984
out:
29852985
return ret;
2986-
};
2986+
}
29872987

29882988
static void vhost_scsi_exit(void)
29892989
{
29902990
target_unregister_template(&vhost_scsi_ops);
29912991
vhost_scsi_deregister();
2992-
};
2992+
}
29932993

29942994
MODULE_DESCRIPTION("VHOST_SCSI series fabric driver");
29952995
MODULE_ALIAS("tcm_vhost");

0 commit comments

Comments
 (0)