mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
target: Make core_tmr_abort_task() skip TMFs
The loop in core_tmr_abort_task() iterates over sess_cmd_list. That list is a list of regular commands and task management functions (TMFs). Skip TMFs in this loop instead of letting the target drivers filter out TMFs in their get_task_tag() callback function. (Drop bogus check removal in tcm_qla2xxx_get_task_tag - nab) Signed-off-by: Bart Van Assche <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Andy Grover <[email protected]> Cc: <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
6ae5040821
commit
dc0fafdab8
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue