qla2xxx: Use ATIO type to send correct tmr response
[ Upstream commit d7236ac368212bd6fc8b45f050136ee53e6a6f2d ] The function value inside se_cmd can change if the TMR is cancelled. Use original ATIO Type to correctly determine CTIO response. Signed-off-by: Swapnil Nagle <swapnil.nagle@purestroage.com> Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b07ef1af4d
commit
07235140a4
1 changed files with 1 additions and 1 deletions
|
@ -1578,7 +1578,7 @@ void qlt_xmit_tm_rsp(struct qla_tgt_mgmt_cmd *mcmd)
|
|||
qlt_send_notify_ack(vha, &mcmd->orig_iocb.imm_ntfy,
|
||||
0, 0, 0, 0, 0, 0);
|
||||
else {
|
||||
if (mcmd->se_cmd.se_tmr_req->function == TMR_ABORT_TASK)
|
||||
if (mcmd->orig_iocb.atio.u.raw.entry_type == ABTS_RECV_24XX)
|
||||
qlt_24xx_send_abts_resp(vha, &mcmd->orig_iocb.abts,
|
||||
mcmd->fc_tm_rsp, false);
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue