Message ID | 20180927050518.7147-2-himanshu.madhani@cavium.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2683B180E for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 27 Sep 2018 05:08:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 129842A431 for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 27 Sep 2018 05:08:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 03E792A4D5; Thu, 27 Sep 2018 05:08:21 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham 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 9672A2A431 for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 27 Sep 2018 05:08:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726605AbeI0LYl (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Thu, 27 Sep 2018 07:24:41 -0400 Received: from mail-bl2nam02on0051.outbound.protection.outlook.com ([104.47.38.51]:9504 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726591AbeI0LYk (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Thu, 27 Sep 2018 07:24:40 -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:X-MS-Exchange-SenderADCheck; bh=Qf0R3AUhW+zKVqBbOhzddqNms9ZAKfEf7XzGQAMIR4o=; b=PhJs6/ZYElXtsdXukpwTZKrLHYuOkmG1VfHwsMkLMOkpwYKsqkcgj61iLJTEtnlOMrrz5fZcHbhwq6jPLid+XHmGCryO+UX140CHNw2A4rVf6dTMhjfmqMvprVbtaskiwmXGJ8jszD80WL2830/BOYcfqvJ5Fblzq/LncLxKHPY= Received: from CO2PR07CA0052.namprd07.prod.outlook.com (2603:10b6:100::20) by BYAPR07MB4663.namprd07.prod.outlook.com (2603:10b6:a02:f1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.15; Thu, 27 Sep 2018 05:05:24 +0000 Received: from DM3NAM05FT007.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::207) by CO2PR07CA0052.outlook.office365.com (2603:10b6:100::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1164.22 via Frontend Transport; Thu, 27 Sep 2018 05:05:24 +0000 Authentication-Results: spf=pass (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=bestguesspass action=none header.from=cavium.com; Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by DM3NAM05FT007.mail.protection.outlook.com (10.152.98.113) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1185.5 via Frontend Transport; Thu, 27 Sep 2018 05:05:24 +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, 26 Sep 2018 22:05:20 -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 w8R55Jtd007186; Wed, 26 Sep 2018 22:05:19 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w8R55J7D007185; Wed, 26 Sep 2018 22:05:19 -0700 From: Himanshu Madhani <himanshu.madhani@cavium.com> To: <James.Bottomley@HansenPartnership.com>, <martin.petersen@oracle.com> CC: <himanshu.madhani@cavium.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH 1/8] qla2xxx: fix nvme session hang on unload Date: Wed, 26 Sep 2018 22:05:11 -0700 Message-ID: <20180927050518.7147-2-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180927050518.7147-1-himanshu.madhani@cavium.com> References: <20180927050518.7147-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(346002)(39860400002)(376002)(136003)(2980300002)(438002)(189003)(199004)(8676002)(305945005)(336012)(106466001)(76176011)(186003)(2616005)(486006)(72206003)(51416003)(106002)(42186006)(110136005)(54906003)(16586007)(575784001)(50466002)(6666003)(86362001)(5660300001)(50226002)(2906002)(356003)(1076002)(8936002)(48376002)(14444005)(4326008)(47776003)(11346002)(34290500001)(476003)(26005)(81166006)(81156014)(44832011)(87636003)(446003)(126002)(478600001)(80596001)(69596002)(316002)(36756003);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR07MB4663;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT007;1:U68FcvT6B2w9nDNMjyQI4NHUsNr7JzywD5SJe1stGfQWOc+lD9GmgzLV3OLSOSfPNblZSssaoWjuTsxbAAys9SyOwGpQRcMM9Xlbu8v6J5fJ04Y/+4yG2xv05VyqbTDL X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5fb9ef11-72ad-45d7-707b-08d62436d570 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BYAPR07MB4663; X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4663;3:TqqnOTTq2tv18CWtMmvICf/Jy06LS5U+KUq8/Lm3VvrR29FDeut0QtGtEGBNDryS9vM8tlpD82iCVc7nss+mDCHmGjFTeTZ80BEWNbLroNfgRyX7NjgxSvmE5FZoa5+mRaB1v1K4ZQJK7hO/Eznkunp/TlX1FaCgLfZcEEzwtK9PO0tspawI3Y1QAUqc3BwEXaBT4aIRPOFLJbUGz85QwX3nb0MaYB6kaEwGw++mZwLqJlmjr/+KARu8sJmCn0wHco6Smqwp9LAAKJkTucdVwvaolm/yd1IJvvDmuyEmprKl8aFLb0Yq3ZLlKChoyN4lPhiznpatNl75IGrhRuW6TqtImOqjU17BO+g+GAyY8/s=;25:SvzQRB/nHqitaSR51HQbqjaKIkymfg0NsGb+BtbWVCzHgzGJ6I9LStcMeXzV2NHzCB9LNLpzB+MURB9eZ8fV1PjqpRJusf84QX0hs5AyVcDpk8MwEx5Twi6hn72rgJIUNGrYvN/Xz76k1v9jQaE4oGb/tqYLGTZ9/UvrLvQmpqbJmnlFlDJJyVUmbZtyFuUs1YSArvwBLRnuOWyGyxDXoNmQbEr7RLOqh7ianh7V5+ExRcZik1X4kap8rx/ODyKuMvfTO1H1R1rZTPSP9WqYkLG0nO8xBh4eEqHgh4GFbpOLR0HqOfqEAO5Ie5t3HVMuSCb1FDOXS4gxewBDhZblRw== X-MS-TrafficTypeDiagnostic: BYAPR07MB4663: X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4663;31:5xvousIzHRYfwlgrG9XtVCf0ZolEFAXhpR4TfEZyD7Iqi1Tflfa0Iz088u9dkWXXuYB++UrVfxfa9UlmFMbVKAJ0ylNzW+s/S6JqOQFwV7Fa8nPrhWJ0sxSKLLjE7Tx148kmsA0rj3JGJXnPmYeMhrvKOeMT2nc9iuFURAZ3zb3aJOjKtXWMloINHlJICfk9p5Qi2Vh1Q/GvUlYoNHoZX6t4b7D2w4l395N94MV2A3Q=;20:aVuVosXT7+vkw2A+2tzYXekWDdwk+5lbfZ6RKeznmKLHqGy8Oil3ZtCrU3N8ArkuUHTxbNkM2jeZq6OS9wdv/ugYDXOL96HgqyKjiB3a5t/qx01fOyFj73Rrvrd0/camjtPWlTsAFUI7ZsHOgQDgUMg4Ng/hLpMTehEEAGjzzWl4gYat3/0xYRbwPYlUQhWSvSNL+D3qML8l88Dq6DLiBNsIZKLSmIQMnllb4q/cYLxOKL75GRB4bAFVK6//9dEZAKPfiQctqQTD8ERIG1llCWx6aA1pOCpsMh9D+R7eQ+WYdZKYnkFNsnTz4CUlsv96pc6PtSJbLJ8zdpxFTQ/X+l8ClBHepAoMkvl9zAh4vu8hIKuofiBfw6f6mw43vvtHsD1G4+1fRwPNUBw2hXvV9Mz6htS31tQThQrgqBytEqJOjE0Ep//kM0f4Ymm58VeWQmWWz44n42kG73GclpL0PvLGVGyAKlZHntuZJ1gL7Mc/orUc0ac1Z8v63UJMwCAq X-Microsoft-Antispam-PRVS: <BYAPR07MB4663DFC7F555DA2996963C75F5140@BYAPR07MB4663.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231355)(944501410)(52105095)(93006095)(93004095)(149066)(150057)(6041310)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(201708071742011)(7699051);SRVR:BYAPR07MB4663;BCL:0;PCL:0;RULEID:;SRVR:BYAPR07MB4663; X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4663;4:1Gtmd4a04xkyZFYTx7CdyDzO1MqVSS4YW2CQtRz4U1GGS+jfbtXulMID7gH4Hn4gQOX1hKroRfAcAjfLFdHMmzdtFGMHp4Zmi4E4M0V4aloKhVM/I/GrHUGDP2HtXi5hsQEAeTGIyC70cMJdFsN1DZ7lK9cdnaoUCHe/NRiNrNpKSZ3k+Hn7xxpDWSes0HkljmF98bgTBT6m8GAaF32sHdy2RiB0QgkmWBuniCRmNbl0P8V+y+gNsc1KGkN8s+PRQMOVKKAzA/k8ZRCEKvYHcNsOeZMvC1qvu9UbBS5uI7m7OaqO5nWgGx+tNL3W60Z0 X-Forefront-PRVS: 0808323E97 X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4663;23:jTbr5D3ASIWl+0XeCYsoxd6X4ujx+cfe4f6cYA3SZEBoSqFZl5MmJtIUFjlweiFA40yjO974ifwF3u7+xRIJGurdY1e2o+cCnB4mAQuzcOw/+O/zSV5r6sq1BGPWtOFVnI/G8AaPA4KD83G/gVbcNY9wNML8OEfiodBcKmlYKCob5PleI8eq/T9s3HE2eW+2K2Q5NmckWLyikKNPNaIV//xhcLfSrRWRvrPU1FqNb4eX02ckTqwqtM1pDMQJRSOInVHaWRAqrI2nmd/lIZ2MgXHzfxsQ1+pguG56UudCyM56Mlp79OSF2+hLiOGkjm5xabd33GkCJSkTmkODtR9vLiCnko4K+c1Yn3DEkjWO0jTOyPrtfpnuoJHrtWGKLl/U89dXNE2z6ubU+OcjDKjoyRff+G34Y1oAY2SDDglpjExhj21MiWXI6VxrNhbDyOER+SfFrPc8o480CdgKwReLRlBNgjwoBpGFFeS+pJU43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psMYEkOlW5KiT0PTuM= X-Microsoft-Exchange-Diagnostics: 1;BYAPR07MB4663;6:ic/6S0rHUXQHw9kXfOVT728poVpGb5lZiq5zhDxB7kDdEW01L9NW5hvsHdOFqLfEAlZr39lK8gSWxjHSQz3JJQV7o/fndAc7i16Q5GMdJ11j5twAybZjfp2PfZF7D0FJxyKtNdPmhCxM3ceEi3ejtNRUbcrtlRHdddUxw78zZeUu2hd4Q9Uyycgbn9TmEvF+hcA7mV4jjWvIuul8H0jW2xZrfvUnjxaLRj1D7bLXX3UPCA7ebLwRExQflXrB7voaMvOXIzR3AakpeeeE4+2ErpkP6syt6SwSA6ESxMNn1Ft5gZTqgS16XcOc8XhHYENmrADKsoyPI4qfBwKdE9I8PtCJrw/6Jq3UKS9W4oa2NJiyaeJLyU2MswvOd3d0LhyHydI7cYaXaha4JYdlPpogVnPW5Is7F/5eWtpNGjpGgUrEFQr3fO9h/VkagbSyL9V9QUYPN8IHjFmlhEdnt1noCA==;5:ihiMbnIhgH3aN7Vj1SotEzR6+d/JkqSzYaaYiqQWCzlKI/ophMVLFsaKgBf2xlfFyozNoGr786M3HuiIBevRobZyJ91bS3BEcE67ApoYpy4TrVlZMUe1UHhPrIqhGViUT1gcZT3WJunBXjWdGV6822HEcqKXBiyqJ8GynpSkQRk=;7:2+Jx4fTuzMQjaKIjTxpPNNcrjDMPNRYJm7sZHQ05eBtHHqm5HJf+Z02h82+8Cokb4ImcmRLR4DHnmNzkAj1MDOehcp2iu0NfHEu8BeibAYomAHBY7+tRQFwo2Df5C55sR0QehfPQxiClS23ta+xXFchT2SO2ciETvcFwUAGttMfE1P3tjB9/s0LbXXgX/m/+A8tYzfLqToVlGFg0sUxDGiUQxZCMIurQFqerFFQQV72v2IQar9KGbK1Md++bzZWs SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2018 05:05:24.4284 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5fb9ef11-72ad-45d7-707b-08d62436d570 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: BYAPR07MB4663 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
qla2xxx: Bug fixes for the driver
|
expand
|
diff --git a/drivers/scsi/qla2xxx/qla_nvme.c b/drivers/scsi/qla2xxx/qla_nvme.c index 20d9dc39f0fb..8dc7a5c64800 100644 --- a/drivers/scsi/qla2xxx/qla_nvme.c +++ b/drivers/scsi/qla2xxx/qla_nvme.c @@ -607,7 +607,7 @@ void qla_nvme_abort(struct qla_hw_data *ha, struct srb *sp, int res) { int rval; - if (!test_bit(ABORT_ISP_ACTIVE, &sp->vha->dpc_flags)) { + if (ha->flags.fw_started) { rval = ha->isp_ops->abort_command(sp); if (!rval && !qla_nvme_wait_on_command(sp)) ql_log(ql_log_warn, NULL, 0x2112,