|
@@ -125,8 +125,8 @@ void core_tmr_abort_task(
|
|
if (dev != se_cmd->se_dev)
|
|
if (dev != se_cmd->se_dev)
|
|
continue;
|
|
continue;
|
|
|
|
|
|
- /* skip se_cmd associated with tmr */
|
|
|
|
- if (tmr->task_cmd == se_cmd)
|
|
|
|
|
|
+ /* skip task management functions, including tmr->task_cmd */
|
|
|
|
+ if (se_cmd->se_cmd_flags & SCF_SCSI_TMR_CDB)
|
|
continue;
|
|
continue;
|
|
|
|
|
|
ref_tag = se_cmd->se_tfo->get_task_tag(se_cmd);
|
|
ref_tag = se_cmd->se_tfo->get_task_tag(se_cmd);
|