Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fe36984 authored by Mike Christie's avatar Mike Christie Committed by Nicholas Bellinger
Browse files

target: do not require a transport_complete for SCF_TRANSPORT_TASK_SENSE



tcmu needs to pass raw sense to target_complete_cmd, but a a
transport_complete callout is akward to implement for it.

This moves the check for SCF_TRANSPORT_TASK_SENSE so any backend
can pass sense.

Signed-off-by: default avatarMike Christie <mchristi@redhat.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent c82ff239
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -719,9 +719,9 @@ void target_complete_cmd(struct se_cmd *cmd, u8 scsi_status)
		dev->transport->transport_complete(cmd,
				cmd->t_data_sg,
				transport_get_sense_buffer(cmd));
	}
	if (cmd->se_cmd_flags & SCF_TRANSPORT_TASK_SENSE)
		success = 1;
	}

	/*
	 * Check for case where an explicit ABORT_TASK has been received