|
@@ -1729,9 +1729,6 @@ void transport_generic_request_failure(struct se_cmd *cmd,
|
|
|
{
|
|
|
int ret = 0, post_ret = 0;
|
|
|
|
|
|
- if (transport_check_aborted_status(cmd, 1))
|
|
|
- return;
|
|
|
-
|
|
|
pr_debug("-----[ Storage Engine Exception; sense_reason %d\n",
|
|
|
sense_reason);
|
|
|
target_show_cmd("-----[ ", cmd);
|
|
@@ -1740,6 +1737,7 @@ void transport_generic_request_failure(struct se_cmd *cmd,
|
|
|
* For SAM Task Attribute emulation for failed struct se_cmd
|
|
|
*/
|
|
|
transport_complete_task_attr(cmd);
|
|
|
+
|
|
|
/*
|
|
|
* Handle special case for COMPARE_AND_WRITE failure, where the
|
|
|
* callback is expected to drop the per device ->caw_sem.
|
|
@@ -1748,6 +1746,9 @@ void transport_generic_request_failure(struct se_cmd *cmd,
|
|
|
cmd->transport_complete_callback)
|
|
|
cmd->transport_complete_callback(cmd, false, &post_ret);
|
|
|
|
|
|
+ if (transport_check_aborted_status(cmd, 1))
|
|
|
+ return;
|
|
|
+
|
|
|
switch (sense_reason) {
|
|
|
case TCM_NON_EXISTENT_LUN:
|
|
|
case TCM_UNSUPPORTED_SCSI_OPCODE:
|