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 <pawelx.niedzwiecki@intel.com> Reviewed-on: https://review.gerrithub.io/371154 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
b368258bb3
commit
80ff6c059e
@ -347,11 +347,6 @@ spdk_vhost_scsi_task_cpl(struct spdk_scsi_task *scsi_task)
|
|||||||
static void
|
static void
|
||||||
task_submit(struct spdk_vhost_scsi_task *task)
|
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;
|
task->resp->response = VIRTIO_SCSI_S_OK;
|
||||||
spdk_scsi_dev_queue_task(task->scsi_dev, &task->scsi);
|
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.
|
* Process task's descriptor chain and setup data related fields.
|
||||||
* Return
|
* Return
|
||||||
* -1 if request is invalid and must be aborted,
|
* -1 if request is invalid and must be aborted,
|
||||||
* 0 if all data are set,
|
* 0 if all data are set.
|
||||||
* 1 if it was not possible to allocate IO vector for this task.
|
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
task_data_setup(struct spdk_vhost_scsi_task *task,
|
task_data_setup(struct spdk_vhost_scsi_task *task,
|
||||||
|
Loading…
Reference in New Issue
Block a user