From: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx> Convert qla_target.c callback qla_tgt_xmit_tm_rsp() to use qla_tgt_mgmt_cmd->se_cmd->se_tmr_req instead of local qla_target.h pointer. Cc: Andy Grover <agrover@xxxxxxxxxx> Cc: Kiran Patil <kiran.patil@xxxxxxxxx> Cc: Arun Easi <arun.easi@xxxxxxxxxx> Signed-off-by: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx> --- drivers/scsi/qla2xxx/qla_target.c | 2 +- drivers/scsi/qla2xxx/qla_target.h | 1 - 2 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 5d88e69..a2dabb4 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -1437,7 +1437,7 @@ void qla_tgt_xmit_tm_rsp(struct qla_tgt_mgmt_cmd *mcmd) qla_tgt_send_notify_ack(vha, &mcmd->orig_iocb.imm_ntfy, 0, 0, 0, 0, 0, 0); else { - if (mcmd->se_tmr_req->function == TMR_ABORT_TASK) + if (mcmd->se_cmd.se_tmr_req->function == TMR_ABORT_TASK) qla_tgt_24xx_send_abts_resp(vha, &mcmd->orig_iocb.abts, mcmd->fc_tm_rsp, false); else diff --git a/drivers/scsi/qla2xxx/qla_target.h b/drivers/scsi/qla2xxx/qla_target.h index 935ea32..1e03d47 100644 --- a/drivers/scsi/qla2xxx/qla_target.h +++ b/drivers/scsi/qla2xxx/qla_target.h @@ -869,7 +869,6 @@ struct qla_tgt_mgmt_cmd { uint8_t fc_tm_rsp; struct qla_tgt_sess *sess; struct se_cmd se_cmd; - struct se_tmr_req *se_tmr_req; unsigned int flags; #define QLA24XX_MGMT_SEND_NACK 1 union { -- 1.7.2.5 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html