mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
tcmu: fix sense handling during completion
We were just copying the sense to the cmd sense_buffer and did not implement a transport_complete or set the SCF_TRANSPORT_TASK_SENSE, so the sense was ignored. Signed-off-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
c6d66aba98
commit
406f74c20d
1 changed files with 1 additions and 2 deletions
|
@ -956,8 +956,7 @@ static void tcmu_handle_completion(struct tcmu_cmd *cmd, struct tcmu_cmd_entry *
|
|||
cmd->se_cmd);
|
||||
entry->rsp.scsi_status = SAM_STAT_CHECK_CONDITION;
|
||||
} else if (entry->rsp.scsi_status == SAM_STAT_CHECK_CONDITION) {
|
||||
memcpy(se_cmd->sense_buffer, entry->rsp.sense_buffer,
|
||||
se_cmd->scsi_sense_length);
|
||||
transport_copy_sense_to_cmd(se_cmd, entry->rsp.sense_buffer);
|
||||
} else if (se_cmd->se_cmd_flags & SCF_BIDI) {
|
||||
/* Get Data-In buffer before clean up */
|
||||
gather_data_area(udev, cmd, true);
|
||||
|
|
Loading…
Reference in a new issue