From 80ff6c059ee14228ed51a798e6a33550e3eb0bde Mon Sep 17 00:00:00 2001 From: Pawel Niedzwiecki Date: Tue, 25 Jul 2017 18:51:31 +0200 Subject: [PATCH] vhost_scsi: update code comments - task_data_setup() - value of 1 is no loger returned - task_submit() -removed outdated comment Change-Id: I523a465eba7af93535e2dc3a583abb315950f4b3 Signed-off-by: Pawel Niedzwiecki Reviewed-on: https://review.gerrithub.io/371154 Tested-by: SPDK Automated Test System Reviewed-by: Pawel Wodkowski Reviewed-by: Daniel Verkamp Reviewed-by: Ben Walker --- lib/vhost/vhost_scsi.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/vhost/vhost_scsi.c b/lib/vhost/vhost_scsi.c index dd683dbd2..b97ac6f58 100644 --- a/lib/vhost/vhost_scsi.c +++ b/lib/vhost/vhost_scsi.c @@ -347,11 +347,6 @@ spdk_vhost_scsi_task_cpl(struct spdk_scsi_task *scsi_task) static void task_submit(struct spdk_vhost_scsi_task *task) { - /* The task is ready to be submitted. First create the callback event that - will be invoked when the SCSI command is completed. See spdk_vhost_scsi_task_cpl() - for what SPDK vhost-scsi does when the task is completed. - */ - task->resp->response = VIRTIO_SCSI_S_OK; spdk_scsi_dev_queue_task(task->scsi_dev, &task->scsi); } @@ -473,8 +468,7 @@ process_ctrl_request(struct spdk_vhost_scsi_task *task) * Process task's descriptor chain and setup data related fields. * Return * -1 if request is invalid and must be aborted, - * 0 if all data are set, - * 1 if it was not possible to allocate IO vector for this task. + * 0 if all data are set. */ static int task_data_setup(struct spdk_vhost_scsi_task *task,