Linux virtualization list
 help / color / mirror / Atom feed
* [PATCH 01/12] vhost-scsi: improve BIDI operation comments
@ 2026-07-15  8:09 Weimin Xiong
  2026-07-15  9:24 ` Bobby Eshleman
  0 siblings, 1 reply; 3+ messages in thread
From: Weimin Xiong @ 2026-07-15  8:09 UTC (permalink / raw)
  To: virtualization

From: xiongweimin <xiongwm2026@163.com>

Replace FIXME comments with clearer Note comments documenting
that BIDI (bidirectional) operations are not yet supported.

Signed-off-by: Weimin Xiong <xiongwm2026@163.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
---
 drivers/vhost/scsi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c
index 9a1253b9d..81e905c4c 100644
--- a/drivers/vhost/scsi.c
+++ b/drivers/vhost/scsi.c
@@ -1047,7 +1047,7 @@ static void vhost_scsi_target_queue_cmd(struct vhost_scsi_nexus *nexus,
 	struct se_cmd *se_cmd = &cmd->tvc_se_cmd;
 	struct scatterlist *sg_ptr, *sg_prot_ptr = NULL;
 
-	/* FIXME: BIDI operation */
+	/* Note: BIDI (bidirectional) operations are not yet supported */
 	if (cmd->tvc_sgl_count) {
 		sg_ptr = cmd->table.sgl;
 
@@ -1168,7 +1168,7 @@ vhost_scsi_get_desc(struct vhost_scsi *vs, struct vhost_virtqueue *vq,
 
 	/*
 	 * Get the size of request and response buffers.
-	 * FIXME: Not correct for BIDI operation
+	 * Note: Size calculation is not correct for BIDI operations.
 	 */
 	vc->out_size = iov_length(vq->iov, vc->out);
 	vc->in_size = iov_length(&vq->iov[vc->out], vc->in);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-15  9:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-15  8:09 [PATCH 01/12] vhost-scsi: improve BIDI operation comments Weimin Xiong
2026-07-15  9:24 ` Bobby Eshleman
2026-07-15  9:36   ` xiongwm2026

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox