block: rename REQ_TYPE_SPECIAL to REQ_TYPE_DRV_PRIV
[firefly-linux-kernel-4.4.55.git] / drivers / target / target_core_tmr.c
index fa5e157db47be242f855a9c1a209ea9e08e60c3d..315ec3458eebc03a15a1715a065eee3dd72b9a2d 100644 (file)
@@ -125,8 +125,8 @@ void core_tmr_abort_task(
                if (dev != se_cmd->se_dev)
                        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;
 
                ref_tag = se_cmd->se_tfo->get_task_tag(se_cmd);