Commit 5a3b89a6 authored by cunyinch's avatar cunyinch Committed by Daniel Verkamp
Browse files

iscsi: remove the check of task status before transfer datain.



The function spdk_iscsi_transfer_in will handle the task if the
status is not SPDK_SCSI_STATUS_GOOD.

Change-Id: I61155ffa056b3eac551f215d50e1808e5389fdb5
Signed-off-by: default avatarcunyinch <cunyin.chang@intel.com>
parent 687e93c4
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -3106,14 +3106,11 @@ void spdk_iscsi_task_response(struct spdk_iscsi_conn *conn,
	/* transfer data from logical unit */
	/* (direction is view of initiator side) */
	if (spdk_iscsi_task_is_read(primary)) {
		if ((task->scsi.status == SPDK_SCSI_STATUS_GOOD) ||
		    (task->scsi.sense_data_len != 0)) {
		rc = spdk_iscsi_transfer_in(conn, task);
		if (rc > 0) {
			/* sent status by last DATAIN PDU */
			return;
		}
		}

		if (primary->scsi.bytes_completed != primary->scsi.transfer_len)
			return;