vhost: show failed taks status
Change-Id: Icc4f046a112dd0b3900bd7ebe803346f9b74c8e9 Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-on: https://review.gerrithub.io/425213 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Seth Howell <seth.howell5141@gmail.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
1f3f160581
commit
43ab58b613
@ -248,6 +248,8 @@ spdk_vhost_scsi_task_cpl(struct spdk_scsi_task *scsi_task)
|
||||
if (task->scsi.status != SPDK_SCSI_STATUS_GOOD) {
|
||||
memcpy(task->resp->sense, task->scsi.sense_data, task->scsi.sense_data_len);
|
||||
task->resp->sense_len = task->scsi.sense_data_len;
|
||||
SPDK_DEBUGLOG(SPDK_LOG_VHOST_SCSI, "Task (%p) req_idx=%d failed - status=%u\n", task, task->req_idx,
|
||||
task->scsi.status);
|
||||
}
|
||||
assert(task->scsi.transfer_len == task->scsi.length);
|
||||
task->resp->resid = task->scsi.length - task->scsi.data_transferred;
|
||||
|
Loading…
Reference in New Issue
Block a user