From patchwork Wed Jun 7 21:43:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 9772925 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 36F6D60350 for ; Wed, 7 Jun 2017 21:44:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 461702848D for ; Wed, 7 Jun 2017 21:44:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B172284F6; Wed, 7 Jun 2017 21:44:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE8602848D for ; Wed, 7 Jun 2017 21:44:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751559AbdFGVoO (ORCPT ); Wed, 7 Jun 2017 17:44:14 -0400 Received: from mail-sn1nam01on0051.outbound.protection.outlook.com ([104.47.32.51]:52384 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751687AbdFGVn6 (ORCPT ); Wed, 7 Jun 2017 17:43:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=OCQdK6s36qR/mCcW5XFQJdhM5iCyxtLFkGBXlRYT62M=; b=ATn54ovxCIlyx9h+Ky00hV2w7/LhHsfzOX54+EPxuVjQmFYtbc42Nky9Ved2tKUmBDLUG6GPxkvizAEWDJr2EQ5P4XvfPZN2OtjfWZtFQkSTQXMufV6hMevb3AWtgb5nbjjCihekipbrASJJZ0rkmruWkOFr31IEzEvU+G4zVpA= Received: from BY2PR07CA0092.namprd07.prod.outlook.com (2a01:111:e400:7bff::45) by DM2PR0701MB1019.namprd07.prod.outlook.com (2a01:111:e400:246f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Wed, 7 Jun 2017 21:43:55 +0000 Received: from BN1AFFO11FD028.protection.gbl (2a01:111:f400:7c10::162) by BY2PR07CA0092.outlook.office365.com (2a01:111:e400:7bff::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12 via Frontend Transport; Wed, 7 Jun 2017 21:43:54 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BN1AFFO11FD028.mail.protection.outlook.com (10.58.52.88) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1101.12 via Frontend Transport; Wed, 7 Jun 2017 21:43:54 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Wed, 7 Jun 2017 14:43:40 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id v57Lhekq023169; Wed, 7 Jun 2017 14:43:40 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v57Lheuu023168; Wed, 7 Jun 2017 14:43:40 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 06/15] qla2xxx: Add fw_started flags to qpair Date: Wed, 7 Jun 2017 14:43:24 -0700 Message-ID: <20170607214333.23110-7-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170607214333.23110-1-himanshu.madhani@cavium.com> References: <20170607214333.23110-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39400400002)(39410400002)(39850400002)(39450400003)(39840400002)(2980300002)(428002)(189002)(199003)(9170700003)(575784001)(8936002)(50226002)(81166006)(305945005)(86362001)(1076002)(54906002)(107886003)(38730400002)(72206003)(2906002)(33646002)(48376002)(189998001)(50466002)(36756003)(8676002)(87636003)(478600001)(47776003)(42186005)(2950100002)(6666003)(106466001)(5660300001)(105586002)(4326008)(5003940100001)(101416001)(80596001)(76176999)(50986999)(356003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB1019; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD028; 1:zMbBfUCGb80NjndjrSBHA9geNGmwp/4UsrVK2+Mx3CJ5rrmzMvMS/7HeNV1GNhKEDhA9fQgI/5HwUaot5vVjsglzi4yUVuVit/sdxKw0+rq3kMr6m0hPVa5UlilMdK2NPEJORIVP/ocIPXMUIFUZ484KQLW19mKRQbS7iEmVpRJo0MvqnpyKOUBnsSAJNcdVuG4GfcDxIqBk7ycMP5Jl13n2apBwl3U0DZc3juSYt158WoZdNaZdydvzG2xYfCqtFjBMXcRrp0Rik536gnUVTf25/D+9YoRVKyJUG7JkTd519sHnZuuEYUKsyqkqs7IllwiEaLfYDO44wLsFJv9S6D/MwKiu2pTcVvUse3iJJOuhu9gvZGUdENm2tqBvUPvBTm7zI3hNuGnvgVw5VHE8fCXW9gw+6Ta/NyuPwsRm8spT9Xcm7YJYRjRat9w/wUh0ldEmLCoJT4nKL45/rLh5meFrLmxNwXzmF72+QS+BH4NsTLkLXn3Pcyf8MPtN/ZLH X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM2PR0701MB1019: X-MS-Office365-Filtering-Correlation-Id: 0d1b03db-a03d-48b2-99e3-08d4adee4b96 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:DM2PR0701MB1019; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1019; 3:G9AIyuId1WlZyoQosKAmKvrwmxiEvbixFrsggsQGi76J07GxCQtYvyfOTQ0tgOY5Ai+YzYwunf93EYFwtEdD8/qPhR8Oq+p686SfQSmjV3tEMjPwT6UpTcwgOyMqLk0jU1sx5nHpNjk5K4EJjItjAxwJQgwLmfxNMVB21PRDxhATS8Bi22ymRZS0DI84lvsuRqWxRgg+OiYJrB9OJcuCPhzfootB8sZPqWtyrMuIOW8IamzaBdP0AI42qtgcVnnWdweN87inkTYITPoMAoQdLXJyMzobcza2Mc/Yjxy/ajTtvDrzlHAOE2RT0HjADAuy9gGkcuLJrY5ax9aZ6z+IgOH0zphvBFsaTk7U7sbUlQi82DyuZotO9rvhb4nl7AIsHPXeOFdkS4Bh9k8MR02hXW5bikL9MXV3F1rEx5fPwasxfXSwFXxtDP+seaEgMqC0zGB5gNn1BNZUcfRL1KvdtAtatNKOSb/sayrBTunQvsWCJWdk2m2QXQvqFkg2gVOr X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1019; 25:t2wdY3iD1eSVaWPvNj4wudPFdmelgo8U+UxdRVvNNZuNJf4pWiWja4+2UQQsAXLlEQTXY65Nc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DSw7nc0WuxZmMVbKQDo6G/HnAoRrbF42C60Of8nCpMfalaHWkpVqy6+sWKW5ZujU5/0yUvI47lP3U7hTHvCfw/W8U8CQHRa1LJv6tnTuWwMi6q3rFw26ectxqz+j3EeXP1hFhmqbTYQ+WI2cgWk5mPqYOqFBUzaPzMaSAF+DVMM3hCJoqKGMc78 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(209352067349851); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR0701MB1019; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR0701MB1019; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0701MB1019; 4:Utmr7/opD/imebzb2hhqA6wRaium/FV78JLmbZ4o?= =?us-ascii?Q?It8y0wfgfvNr+P3Lah8ljYHBh+U3awcEwtWimyXAmlQjFPzT7DMtzhT72/Fv?= =?us-ascii?Q?qiGSIa0Qf/ZC1naUl6blw5QwUZ2NrazFczWs5S0lJ+FUsiwQrz1v/zN0bIbA?= =?us-ascii?Q?oR8vV4qy+aaygSlR1e2frutJvpI4RWYCY8/+/LJ2s5W1rMUeytW+Cq0ZfmR6?= =?us-ascii?Q?DfwdqhpJ/C872PzIzyiLszuN3LCtv2oFuS7wSpcsiMTjt/T9Qlc7h2PalEKz?= =?us-ascii?Q?UQapPij0PO+F+S4/cxrSR9jdAjmU7YUypoAyq3f9HdBIoNdNlf3lE6yC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+jBwt6BqURWXUezcUi1D/g?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 03319F6FEF X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0701MB1019; 23:dSuUnBUEmlK4s+R2a1pTnsy8kfeyZuE0l9o++Rn?= =?us-ascii?Q?/6ngbe74X1mRtPTHw/uimP748uwkliAnMbGuYwb24pNInuGVyRkC9dgm9wT6?= =?us-ascii?Q?SFaXBDuQBBbsAl7D/XUVJQCWCge/LSnUjrVqS43FnRpcLyBTVmliKPukaNM/?= =?us-ascii?Q?iFtKA/E4HLjxCBDT2zYz0YGE+w4o1OlOOoY0j0aON9DdPbtdxMegka23IZEK?= =?us-ascii?Q?uAuFYCAA6wdsoFvl6m9qC+b4MMTqyo8bJVADJ7nPCyZ85k7Z9BnF/ltZRg2H?= =?us-ascii?Q?uXAoNsEIU+/noLSgEgJylpgO523uZGDdHCG3/DN/xh4uNxTni/fT8WWo0mKP?= =?us-ascii?Q?NazZU5/air7iRu9weK78VtFmcHDm6sfjHES541uSXIbtXNUqvyk0JJD/cIeB?= =?us-ascii?Q?nvZJa/eQnXiRh1ZntLIOKOMA+W9fN+iKddllXQaQQx0sEluS4wcLUs5yj99q?= =?us-ascii?Q?+QrD2ZJ/lY32n1eo6geDHpQBnuGvJKHDxCVdz3S17Adbv7Bb8g0GH2tafDoC?= =?us-ascii?Q?H+LVXiPak5J6MCA7judPEHSafchUqNCa3C9WLXRo1EuzITTO6nH8eRjsJThP?= =?us-ascii?Q?1KBf0p8xXSjZrbkTyAVKrJBS2wr7aVkW6oFsDT5iEdU5/KODzXm+Epg3a0ko?= =?us-ascii?Q?WzEdQv8ukEL389qxQjP7pXJxu5BnO5W1fwYtgAT7QYut5ltdCvH9ocVUKgLS?= =?us-ascii?Q?1w11Kw1ihUTVbr6PjlDAwPzOk37CsIv0Wh25WEApNOiOzFtb1Ntv3hfbDKdb?= =?us-ascii?Q?cV8exMPfKy7nAf1Fpc0bLZ9NzOEH1z8+P/4ge5ukTpix8CxZp/xozfg06ahc?= =?us-ascii?Q?Js2R3zyw+4SrmuFHKp0yVazuv4R5yh2Ca2pkODiaawO+cDwb3IOmfCN3uiUQ?= =?us-ascii?Q?NUxU9JVWng6jU83RmjV9ankGNAUUzda6BYScT0f+aRLQQI+20ZWB59EOcuHL?= =?us-ascii?Q?++ssbDPUBJzdkoJYx9UTyzLrcXJmRjyaAbPq0SYLyb+6k9RWeMTHo8Vo8Y+P?= =?us-ascii?Q?WLB3ScjNBTVtbQARHR6wULhVBJUiibkm3szye6vaJq8taAwIBijyLrUVA6y4?= =?us-ascii?Q?2HLZzrpSDILadaR3xXlgnYXBg37bCkLfYcth3TC+XYYA/Hrj6zrmoge+5ofk?= =?us-ascii?Q?yakPPHbul8iHQBcK99Sr/zfvJpjYvqDOL?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1019; 6:s+JOh/gU5Usb+1u7b4bw9vgwOVa9FAxg4OwnKlNCGJkV0heWl9yBUPJGl/XJ6jr8vEfTVmZzuXNUUae8/UgmMhbLnaqmq0LOXDvVY6llHKnk8RKf+CQFCEfPA699xwL7i0H9uQX3IkarunMsCmUgHb3WVDsFqxTKFXJylS3Xyz5mFJcguN1r/fpBGNq3qHO8OYx6b5BjNf2TnT9oaXVzMqh+3uUgyRyUyzSwdbxCFVgF4U2lxhTmQz7bo/B8ZbLTDV9hPMke3Jv+dfhY4nFQOVIOcVuhTkf6BSTTESx40jy8WSveS+/xRxV5kWoVof5hgKkCQDIx4uUd61cyyhLOQWbNnhnum1GmmFXdwac+mdx0iFcngGc3x1xvB+Mujjrp1ni7NHimIUgfp19IH62fGMwuED9Ir43eC7N1syXfBIqI6xSUsftXGotyLrhkP0rhpXiEOSHc7sWNGRitYKb58M+jW1Y5pVdHzmvwXByboReXO84w9lmwiyYIjQm/NMTYJmCEU8ARKS+V6hUIAtSE1g== X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1019; 5:DXJUYazBbeQtBlrCQfm4U7GWtHoWaTsDpylModemNB9Rde6W93k0ZgRaFhLACGll5WWCr0BOjoYaQT4yPPqbsJv9875CFAjPXlXJ4ZKWJznvI5Ni7/sNowD0yZgIB+k7eO9RBELrTjZkSNhBkNjY9FuCkx6MWzLuTwaelH2dMB4Rk//j6Qz2gHex2kcx5Uuppd0e8+56xFpAQt7OfY48xHQDcMpZTUrJsvGmo+MCSju8N1dnRpmVEHmItgjvoWsr8GYVaiZIQ9yqr/qogrc7TkbztXpFUjZOCaP/1B9GQSsuddOmTpa/758dZldqU3AZsaA2YIOo9tikqjDpLkNL3zGI+ns4qykFzjateXFdUPvw4fvzfwmVvXdF23P6rTTqINv5biBJYBL9HoydTzxSvK73JqohIVb57YGvwpbt30GJKjXcldPfeDm46n5kV4gwtJNsjQA7fHQLe+mloMtjZF6QSj9XY94JDi1tBnLd6BwksmiUgQHlOQg52Rr7x9GO; 24:27kCFPLrfjUVUt2FZCbPgK5YjnSyT/i9Gt6kGtbQL8VtJ6QdbJlWeTYnugRqfQacSi+gtL+5413h+IvWhO7UAGnPbbzJ0qAmZ1HVqui/VUU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1019; 7:OMAOZOm4HeTLO6D/0te5FthdykwRi8guthJhl/OSCfFysj4htwAX+9uniFA8Fpa2/33HsGSby0JF2R6dChIbNun6wfSU6DiS0ZnFeJru8rk9OXHV7xJ60O3jLHrU5BbrlveXbDQyiKtn9vxs9vMITFL3Qrbz2rUfNgs7Y/+jDr/vUP7kqky9dGnvY32t4QbtTXt4qigo8gfb3KMEpdoo2f1btjW4OOCiI95mJbGlnYZcnb8yobk3daYJzPyX3rvUgrf0cv7xCzQZCU9JwM6oy18hj4dpWno39bTC3oOKOuVmnGyO9lRE30f1c+tmKbXbfRRN38TZstyT0RbX82U6sg== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2017 21:43:54.4633 (UTC) X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB1019 Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran Add fw_started flag to qpair to reduce access to qla_hw_data structure by each qpair. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_def.h | 21 +++++++++++++++++++++ drivers/scsi/qla2xxx/qla_init.c | 4 ++-- drivers/scsi/qla2xxx/qla_isr.c | 4 ++-- drivers/scsi/qla2xxx/qla_target.c | 6 ++---- 4 files changed, 27 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 18b37c864250..0dec148a4580 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h @@ -3262,6 +3262,7 @@ struct qla_qpair { /* move vha->flags.difdix_supported here */ uint32_t difdix_supported:1; uint32_t delete_in_progress:1; + uint32_t fw_started:1; uint16_t id; /* qp number used with FW */ uint16_t vp_idx; /* vport ID */ @@ -4183,6 +4184,26 @@ struct qla2_sgx { srb_t *sp; }; +#define QLA_FW_STARTED(_ha) { \ + int i; \ + _ha->flags.fw_started = 1; \ + _ha->base_qpair->fw_started = 1; \ + for (i = 0; i < _ha->max_qpairs; i++) { \ + if (_ha->queue_pair_map[i]) \ + _ha->queue_pair_map[i]->fw_started = 1; \ + } \ +} + +#define QLA_FW_STOPPED(_ha) { \ + int i; \ + _ha->flags.fw_started = 0; \ + _ha->base_qpair->fw_started = 0; \ + for (i = 0; i < _ha->max_qpairs; i++) { \ + if (_ha->queue_pair_map[i]) \ + _ha->queue_pair_map[i]->fw_started = 0; \ + } \ +} + /* * Macros to help code, maintain, etc. */ diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index dcc306121a3d..e6a1f9ca0e95 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -3207,7 +3207,7 @@ qla2x00_init_rings(scsi_qla_host_t *vha) } else { ql_dbg(ql_dbg_init, vha, 0x00d3, "Init Firmware -- success.\n"); - ha->flags.fw_started = 1; + QLA_FW_STARTED(ha); } return (rval); @@ -6841,7 +6841,7 @@ qla2x00_try_to_stop_firmware(scsi_qla_host_t *vha) ret = qla2x00_stop_firmware(vha); } - ha->flags.fw_started = 0; + QLA_FW_STOPPED(ha); ha->flags.fw_init_done = 0; } diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index 3c9f9aa7f2c2..7ebd92ee94c3 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c @@ -710,7 +710,7 @@ qla2x00_async_event(scsi_qla_host_t *vha, struct rsp_que *rsp, uint16_t *mb) ha->isp_ops->fw_dump(vha, 1); ha->flags.fw_init_done = 0; - ha->flags.fw_started = 0; + QLA_FW_STOPPED(ha); if (IS_FWI2_CAPABLE(ha)) { if (mb[1] == 0 && mb[2] == 0) { @@ -2759,7 +2759,7 @@ void qla24xx_process_response_queue(struct scsi_qla_host *vha, struct sts_entry_24xx *pkt; struct qla_hw_data *ha = vha->hw; - if (!ha->flags.fw_started) + if (!rsp->qpair->fw_started) return; if (rsp->qpair->cpuid != smp_processor_id()) diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index cbe6ff9f663e..8e855093740c 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -3047,7 +3047,6 @@ int qlt_xmit_response(struct qla_tgt_cmd *cmd, int xmit_type, uint8_t scsi_status) { struct scsi_qla_host *vha = cmd->vha; - struct qla_hw_data *ha = vha->hw; struct qla_qpair *qpair = cmd->qpair; struct ctio7_to_24xx *pkt; struct qla_tgt_prm prm; @@ -3086,7 +3085,7 @@ int qlt_xmit_response(struct qla_tgt_cmd *cmd, int xmit_type, else vha->tgt_counters.core_qla_que_buf++; - if (!ha->flags.fw_started || cmd->reset_count != ha->chip_reset) { + if (!qpair->fw_started || cmd->reset_count != qpair->chip_reset) { /* * Either the port is not online or this request was from * previous life, just abort the processing. @@ -3206,7 +3205,6 @@ int qlt_rdy_to_xfer(struct qla_tgt_cmd *cmd) { struct ctio7_to_24xx *pkt; struct scsi_qla_host *vha = cmd->vha; - struct qla_hw_data *ha = vha->hw; struct qla_tgt *tgt = cmd->tgt; struct qla_tgt_prm prm; unsigned long flags = 0; @@ -3223,7 +3221,7 @@ int qlt_rdy_to_xfer(struct qla_tgt_cmd *cmd) if (qlt_pci_map_calc_cnt(&prm) != 0) return -EAGAIN; - if (!ha->flags.fw_started || (cmd->reset_count != ha->chip_reset) || + if (!qpair->fw_started || (cmd->reset_count != qpair->chip_reset) || (cmd->sess && cmd->sess->deleted)) { /* * Either the port is not online or this request was from