From 4082402a730025817e16a08f5294598f30689791 Mon Sep 17 00:00:00 2001 From: Gleb Chesnokov Date: Tue, 18 Jan 2022 17:33:03 +0300 Subject: [PATCH] qla2x00t-32gbit: Remove support for RHEL6 The SCST has dropped support for RHEL6 since SCST v3.6. --- qla2x00t-32gbit/qla_def.h | 5 +---- qla2x00t-32gbit/qla_os.c | 19 ------------------- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/qla2x00t-32gbit/qla_def.h b/qla2x00t-32gbit/qla_def.h index d94f6644f..aaae18f1b 100644 --- a/qla2x00t-32gbit/qla_def.h +++ b/qla2x00t-32gbit/qla_def.h @@ -24,12 +24,9 @@ #include #include #include +#include #include #include /* struct bsg_job */ -/* - * See also commit 5db53f3e80de ("[LogFS] add new flash file system") # v2.6.34. - */ -#include #include #include diff --git a/qla2x00t-32gbit/qla_os.c b/qla2x00t-32gbit/qla_os.c index 264c4701e..f395e21cd 100644 --- a/qla2x00t-32gbit/qla_os.c +++ b/qla2x00t-32gbit/qla_os.c @@ -853,23 +853,8 @@ void qla2xxx_qpair_sp_compl(srb_t *sp, int res) complete(comp); } -#if defined(RHEL_MAJOR) && RHEL_MAJOR -0 == 6 && RHEL_MINOR -0 >= 2 -static int -qla2xxx_queuecommand_wrk(struct Scsi_Host *host, struct scsi_cmnd *cmd); - -static int qla2xxx_queuecommand(struct scsi_cmnd *scmnd, - void (*done)(struct scsi_cmnd *)) -{ - scmnd->scsi_done = done; - return qla2xxx_queuecommand_wrk(scmnd->device->host, scmnd); -} - -static int -qla2xxx_queuecommand_wrk(struct Scsi_Host *host, struct scsi_cmnd *cmd) -#else static int qla2xxx_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *cmd) -#endif { scsi_qla_host_t *vha = shost_priv(host); fc_port_t *fcport = (struct fc_port *) cmd->device->hostdata; @@ -5220,11 +5205,7 @@ void qla24xx_sched_upd_fcport(fc_port_t *fcport) qla2x00_set_fcport_disc_state(fcport, DSC_UPD_FCPORT); spin_unlock_irqrestore(&fcport->vha->work_lock, flags); -#if defined(RHEL_MAJOR) && RHEL_MAJOR -0 <= 6 - schedule_work(&fcport->reg_work); -#else queue_work(system_unbound_wq, &fcport->reg_work); -#endif } static