From patchwork Fri Jul 21 16:32:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 9857291 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 0184360385 for ; Fri, 21 Jul 2017 16:32:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E23142872B for ; Fri, 21 Jul 2017 16:32:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D716528767; Fri, 21 Jul 2017 16:32:48 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 5328B2872B for ; Fri, 21 Jul 2017 16:32:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754520AbdGUQcr (ORCPT ); Fri, 21 Jul 2017 12:32:47 -0400 Received: from mail-bn3nam01on0069.outbound.protection.outlook.com ([104.47.33.69]:25872 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754518AbdGUQco (ORCPT ); Fri, 21 Jul 2017 12:32:44 -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=F+14AAlvwhWwJq4sP6Uy0XcQsvwSqpPMOWIedYBNbjs=; b=GOs7unsYVqPOqAIo/jkrhM8hMmM6jmWtHPalurDos8snjXT7zAQBBGjy6B/MbT76pEoznf7tLz56N16ugfVFjtkjS1PoTDPH4mCCQm75yTheE9oeWJ5Zvg6xlb9IctY+pLzhkc28h0HGfCPHKz6bzbw065DF//Gf7V0Oz8JrT+o= Received: from DM5PR07CA0037.namprd07.prod.outlook.com (2603:10b6:3:16::23) by BL2PR07MB2434.namprd07.prod.outlook.com (2a01:111:e400:c754::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Fri, 21 Jul 2017 16:32:41 +0000 Received: from BY2FFO11OLC016.protection.gbl (2a01:111:f400:7c0c::189) by DM5PR07CA0037.outlook.office365.com (2603:10b6:3:16::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1282.10 via Frontend Transport; Fri, 21 Jul 2017 16:32:41 +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 BY2FFO11OLC016.mail.protection.outlook.com (10.1.15.61) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1240.9 via Frontend Transport; Fri, 21 Jul 2017 16:32:41 +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; Fri, 21 Jul 2017 09:32:29 -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 v6LGWTnl032394; Fri, 21 Jul 2017 09:32:29 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v6LGWTpO032393; Fri, 21 Jul 2017 09:32:29 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH v2 5/6] qla2xxx: Fix remoteport disconnect for FC-NVMe Date: Fri, 21 Jul 2017 09:32:27 -0700 Message-ID: <20170721163228.32339-6-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170721163228.32339-1-himanshu.madhani@cavium.com> References: <20170721163228.32339-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)(39850400002)(39840400002)(39400400002)(39410400002)(39450400003)(2980300002)(428002)(199003)(189002)(105586002)(478600001)(69596002)(106466001)(80596001)(50226002)(76176999)(50986999)(42186005)(2950100002)(626005)(101416001)(33646002)(36756003)(72206003)(38730400002)(4326008)(54906002)(86362001)(47776003)(1076002)(2906002)(5003940100001)(305945005)(48376002)(87636003)(356003)(50466002)(5660300001)(8936002)(81166006)(81156014)(8676002)(189998001); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR07MB2434; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; PTR:50-232-66-26-static.hfc.comcastbusiness.net; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC016; 1:06OjdoJelm+jPArqSs2UNFk3IIZ5MxgdLkuP9C1KXF4fHEGLNIWc6c1/oBp4N1rGhyMp86FQ5cQjuuo5wAaAIRmcnGg6zmpxToA3SLwrubn1UqkVLIn6IkmllBUMTbuJ1clWZGKjILm+Xx2T2iJJyf0AiVhlT/dbDx0kFJYK+NX0SGo6PIsfKg1/n0jl7tmvB1KB6Pxh7eKsE77S8SuTlgS+BuA6BhRc7H9y8eGYTId0r0WY/tsv+hibG9puRNrPV9q59BONc0vR9nBrcqE8oRcMn48LQSmjF6ZZGktV0qUtHFUrPwkmkFUUcTNwd7HJyZRKRheZBt+oaMY/ALjdATDbj9fpkX1yMx1Fp1dhm0o7Dx0YK4r4Ya1Q2WjH2AFt6btdkZmyafx3+zX8Q+1tpNebmcF7antH0JkXqr8TaiNOHA5NVipnMFzWkX4Bov6KhIxHTnCT9ZMaG68Pur8BPubc8ioqW8mRnUt/dr2LQT0yv78cYIwAlxi79TXkIngIiFW/BmSOI02iZffS6V9+TVXr0HIK2M7CaKblpZmRUz7v7UBJTh6URh07kU2Qff9QV7AhtwBgg2G08KiqO2NBFIhhk1X+6hkzVrCJ4loPmUnYn2O7L2DVKAp/cMgIrR/2038OccMARbm1EYeTrA1nqFXLIC7SUBiANWCJNbxelYNB4UHoI70qjdnNxZBnFa0BhaV3SINotRwcdkcsVG8IDNylQquD9sRqfMdKTY8CiA7mt5NT12czaWe01A4C/B2vORJovOPVYJ1Zm8Oyy8uOpMIzQ/80cgPzb0A8xZGiHsNKT6r+JzWNCgcS1HvKM+GiyWzXag1al13Dpht1ccLtQQ== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 629308a3-e42a-4101-71ad-08d4d0561bc4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BL2PR07MB2434; X-Microsoft-Exchange-Diagnostics: 1; BL2PR07MB2434; 3:PK1y+nsbjQG4Dqam4+KqG5bX0yBuvZIyHiaBWhU0/Uygzw4BT7T3gXwUlkJSrOtUVscNqTRDEca89Aj+pTrzy5WeIgpn/DmnAd99JrqUpCqRsGJDOtJoR6LjFyl0dFY4TiGaO4HYX+z5W/IfwhXRZVDpBp1CyTPMK4Lc4/BFz8kz+d9Rf6hdcw3vzHpDdmw7dt/uX59xhW67FbJ58o7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eLnWHD8X3RGegYkRcWRNcwDB8LVyO7q69S9nfrAO2/+a394cODkf2yyOtq8mt+1m2IXddC0f0lB+YRgsaFe3CVCi+tBxDXs3caOGIS/qOGTCZKJvRio1aR+1WVLVLgi1xFYF03FFE9bhBPTvIe/ecrnoWdgv1SGTTfJBBY/4h6rzvUCdkM6Ic4pFphhucQ/UiX/5CgplrPYsHJkCAWxbeKnj7nPpz4bdll3EjVgQTHrGXAsu1lj1AWzI9KTq2CpR6hyaBvlWeL6hdSZduPv+iugREVHbUFESRByt82+5Pi9bdmP/Wr3Zy X-Microsoft-Exchange-Diagnostics: 1; BL2PR07MB2434; 20:AVnRitEKFsFsyF/DXeCFqVuw+6GIIiNZVdIjXmgK1bmeEV7S9gYEbA8zRqqE8Dqnlncf/gecmOVTjc0K85bxnKE9oXjEfw4PRK+Bbzg1PHM49J39NPHe7aJbGmp4/5lM6MMpTDIUoUL5KvMuLF43F9ci8kMrDomlf5Y3Oq8XeVn788TcX+9TivwZ5B7krR1Z3ArJkcJSY8S48n1dzQMAcO/laKQ8CSbJ5uVPQ5A96IaLFiIstU9QMNxKjAe7jHDjcs8N8egXbhUGaaoVYRHuIOvPqTE74AMnQDnBKuYYveei5YrTlHAbY3K5MrLFBft3It35Xgtk+o0oLp8i3TO9R6iqEu7MhKVPVLQd1J0q3YlG+xoYzl2Uw26cKqqJ/KLXTW85En5HP6OxYT+J0RfdUoSIgGe5WdFVmQCcuZakJu99RNBEGD6WKaEI7zhj0AHK5LJ0Yabfeb8VhxvjCJwfG/Yb38WPij6PQta6eCVWr+sij46NnH8/SWlqeZqg95R0 X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BL2PR07MB2434; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BL2PR07MB2434; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR07MB2434; 4:9U+cfI7sKmkn4WO63YmIlvP4NEfk3VSY/kiMM9duYg?= =?us-ascii?Q?lCyjYMKIIqOYLc3bILrxGcx5bvW26BCdbgwobDOD1P/HetfI5vVeAjFdTeV+?= =?us-ascii?Q?PTkXwWDFifyEvUMaaMzEaV8SFC6EtpSu6o0xjRfckxPQN3l3DT5qkaXXXNx9?= =?us-ascii?Q?VDO6AWmLd0zR1KDzipEAiOpiQcqZbFiWlfQbPISb5bmNb6RWMW4gTRYdz1FC?= =?us-ascii?Q?J0S4dBvJFPiH4v74ijvyStsaPGzyohk8/AGSuFcMuKj6d2wYZLmgUFk0g9EH?= =?us-ascii?Q?YOXGZdNcNXI9Vg5Q2CYO+WYtMzw5dM90z7H30z6jfjbAg8TGKpDOpb3eFXz/?= =?us-ascii?Q?HJOSy7xzQ5bYfNtrrE+hxl57gLEu4d2PE6HpS607KHnJV+/9s/S23LrRYAmB?= =?us-ascii?Q?TEk/5zL6tLa7v/67ucZyiTAonvWxQrO6gCokBTT8D3Y3n2uj58Yorc1VOVSU?= =?us-ascii?Q?Msnljf+Cx4V7FTW1ftVIFrUKnMMKjEVZ0UYAZ44mNKC+qyImwpEc3hYnteb3?= =?us-ascii?Q?SUMBFp3gzdNVHaCndTD/lbBTOkNdqRN6h/BWlk8HzzILe99k7iMH8QbjTfTQ?= =?us-ascii?Q?xZ2Qn1/zqRdzDX5WHWKkFThEJU13jfyZvs3LT8AR9/6eMfOp0l4+7hkWoFfm?= =?us-ascii?Q?uxZhiOcQ8DRIltjU6mVIY724C4VNMAi3fB9KMd5n3u29CUrOdKkEg59XPHC/?= =?us-ascii?Q?ig2qDnLkSXpUlmP8+WpVQ0wyyBggOJnZ4P6r/GE+xvVcKeo5+uDa367oaXVb?= =?us-ascii?Q?6iufi9CRGJ8Ynv7fttoH5sduabM7BXmihJgOxNT4amEhLGYbMLBGAq96jEhr?= =?us-ascii?Q?Rq9cmecGjeWlI75eHd33gj5nMb4Yq/vPSwytoYVI8Vw6GwGZugU4Rab+q5fz?= =?us-ascii?Q?8FxmTv3nHpqy7+NeaG7VbWIWK8rIvzv5mUp9VcOURmNclzTB+w3u+vUsHOSd?= =?us-ascii?Q?4JQM6EDIDcV+614MGuLGE8PEyYW0yJF6C0l3bmYz8Q7Qv53So1zeFo14r1G+?= =?us-ascii?Q?4uZUzeAgTfvaX6wuIu+apIF6Cuo9w/6ITlAIEZw9MFpTBpTktPKBSCZE8nPl?= =?us-ascii?Q?aTA3dr00Gj3wsKd+4WMEmCOJuMR6hTG56CJao/mGVLTrHkaXUSRq0E7sY9k3?= =?us-ascii?Q?3+GSt2g9ZM1rqc10wVryIUI0XfHnYXfOK6wws5YWtoEvtWgcrh8vA5NO5VJv?= =?us-ascii?Q?IuNjMMd2nAGek=3D?= X-Forefront-PRVS: 0375972289 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR07MB2434; 23:42ZRBI5jbDcmzOuiJ0WrhF5WiEYkHRCbePV0Pb8Ac?= =?us-ascii?Q?CPu0J9Dz1swqBoGxPWEhaciboovEHnbPKqi30FqXQYy/hSML5127ehUACBG4?= =?us-ascii?Q?IivV8RkiJjWVFyTUa+PhMmwA5dWHKevZjuUV+BNF9/TY3uLsQNIAsTCNjtLc?= =?us-ascii?Q?J22ousPFiRbnGYpDQ0bMQTtYEiGW7BgoDWZxlEcxo19i/eA4kgjxvt0x3yjy?= =?us-ascii?Q?j6hExb3ktT4MOY7G2LddbtJaK65EJtDIuqVt5Rigp4UYeCBsuf7Hw/2t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?= =?us-ascii?Q?gRpjWH9ualiWneDKSatVsBWmkB4WDh6uBNsMiTll2sAb/TTNN+rK+Ekb8eG4?= =?us-ascii?Q?LyIBkmqBTr52eHXdYNTqvLvOcIw45vDJByT0IOQME2zaxD8nyvMhskfMbEv7?= =?us-ascii?Q?A=3D?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR07MB2434; 5:n6K0XPeGmRSDVB/TC+h/GRjhfePNEfaGaV5reJrkI0MJMy4C414C7oCiGDZkJte4bWSE9ZfNF7mcHEyrJhsNdn36JHi2E0295/U3Bpv7dkkPlndoh6YJ2vKBUOmqhrbhXKufhYrTxlvSmajKsy9kjtf9MVygoURljx8wz7HZPEbAy8wgEe3hkR/3FyiLdZccMzE1prRbcMD5CMUzMfSYAq7A7JSzc8V7VW0X3eF0oHpPHmh/2XMHUu/oqMy+aJD301ZFlGH/VpEIpYYNjXieD+TgJHHA/L2Ptqt2gZ9ozvzE+J02yaOWiOjIRFkvoXlHlevpRcDVb6Q2yj4g2dH9aDnGtmdQVwr7995+r1NGuILPsEZ3Twvp9emGDEq9IYaLQu1yZdij+8ev7eGDKWITg/LwvIKKgwby8RZ/TBtY2M0oG160GntFXHoVknW1ZqQYpZg9VXw8UqXAb0sB3gksJJ1vpPVMBynpbNMswtmShi4FpR78Rre+rlWu3m4JCf80; 24:U/dsY3I5H7XI9UEVNo31WQPlI34L3PSx45FL2FdodZrzi3hQZQuBCY1n8gHRPv4M/30EYZyZ7W0MYVkCxdgPKTdEI2bOCdCf8k2IMUSkQBI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BL2PR07MB2434; 7:41uJ45A9CbhmewfXjIMCyUNz2sDyd7WjBOO8hqXE1WEqqXkFpafFR4e7FJmdDI7iRL3LL0gqic0Zn3H6R/f24lVihjwySu2VR4ZqVNsQYEe0+JY0V5EoB44suRf5Cw+sgtuLNAbt4SfdIHoy7LnmsGdPwmUNSFT6G2qJat7hnHtYgL06P9EzY6tsSgp7aRxBbRg1UZjSsgaFncwmXyKWiyY/Hojguhg8RvEBp8F0R/7WpSdQonvOH/E0smBIkA7XBsaw2D6/9xq4hjz5SX3LgJGQZhUR5Qz+G0MB37ewM8fCjOSOW0AMTiRYjF4tGs6vGoB+VkJm/qPfp3wMEG8n/d/kQCFkLjW9gQBp/iHTmLX0OTPBh4j2EqJlFlUKVJku16fxooXOfcuMC+KAygDJ7HSTVaENE2L4MxFxyU8xLmO8R97uUipykciRjwlmdSrbVkRBmdP1HGj2lf3+ZZvOti9n0F8XxdETyCu/bLc43vAuhRCqTpnH/LKfduqYLcY2vV5cETZem7rOM0hvAomlbrVprekcFlZmZPB7dIDhFPBzez3W5t/z7rpaWIf4tR8RR4vfcvQtqK0TR3N3vSsreREBMB9YQE5dT9QKunrN7i529g8jyBBAbwM292TtcE7ATAq7dTSoqs8k+xvboY+MQr90ugvsoMrMMGTvhaEnRwQXoFiMHyMZIOqkf/rH1Vm2CaTHe0bFgYw/n24S2VzE5XhRZUG48rPZtBYNgQayXKfVpQyoSyt5mUJM/6johlfwZc7vOQ6m1M9FXt4Hdn+KlW8SbvnhOWFDNydTsRBD1QE= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2017 16:32:41.5522 (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: BL2PR07MB2434 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Duane Grigsby Signed-off-by: Himanshu Madhani Reviewed-by: Johannes Thumshirn --- drivers/scsi/qla2xxx/qla_isr.c | 37 +++++++++++++++++++++++++++++++------ drivers/scsi/qla2xxx/qla_nvme.c | 9 +++++++-- 2 files changed, 38 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index 317fe6026856..c14fab35fc36 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c @@ -1856,17 +1856,42 @@ qla24xx_nvme_iocb_entry(scsi_qla_host_t *vha, struct req_que *req, void *tsk) fd->transferred_length = fd->payload_length - le32_to_cpu(sts->residual_len); + /* + * If transport error then Failure (HBA rejects request) + * otherwise transport will handle. + */ if (sts->entry_status) { ql_log(ql_log_warn, fcport->vha, 0x5038, "NVME-%s error - hdl=%x entry-status(%x).\n", sp->name, sp->handle, sts->entry_status); ret = QLA_FUNCTION_FAILED; - } else if (sts->comp_status != cpu_to_le16(CS_COMPLETE)) { - ql_log(ql_log_warn, fcport->vha, 0x5039, - "NVME-%s error - hdl=%x completion status(%x) resid=%x ox_id=%x\n", - sp->name, sp->handle, sts->comp_status, - le32_to_cpu(sts->residual_len), sts->ox_id); - ret = QLA_FUNCTION_FAILED; + } else { + switch (le16_to_cpu(sts->comp_status)) { + case CS_COMPLETE: + ret = 0; + break; + + case CS_ABORTED: + case CS_RESET: + case CS_PORT_UNAVAILABLE: + case CS_PORT_LOGGED_OUT: + case CS_PORT_BUSY: + ql_log(ql_log_warn, fcport->vha, 0x5060, + "NVME-%s ERR Handling - hdl=%x completion status(%x) resid=%x ox_id=%x\n", + sp->name, sp->handle, sts->comp_status, + le32_to_cpu(sts->residual_len), sts->ox_id); + fd->transferred_length = fd->payload_length; + ret = QLA_ABORTED; + break; + + default: + ql_log(ql_log_warn, fcport->vha, 0x5060, + "NVME-%s error - hdl=%x completion status(%x) resid=%x ox_id=%x\n", + sp->name, sp->handle, sts->comp_status, + le32_to_cpu(sts->residual_len), sts->ox_id); + ret = QLA_FUNCTION_FAILED; + break; + } } sp->done(sp, ret); } diff --git a/drivers/scsi/qla2xxx/qla_nvme.c b/drivers/scsi/qla2xxx/qla_nvme.c index 6c5eebbbda4c..97a7b222b549 100644 --- a/drivers/scsi/qla2xxx/qla_nvme.c +++ b/drivers/scsi/qla2xxx/qla_nvme.c @@ -169,8 +169,8 @@ static void qla_nvme_sp_done(void *ptr, int res) if (!(sp->fcport->nvme_flag & NVME_FLAG_REGISTERED)) goto rel; - if (unlikely(nvme->u.nvme.comp_status || res)) - fd->status = -EINVAL; + if (unlikely(res == QLA_FUNCTION_FAILED)) + fd->status = NVME_SC_FC_TRANSPORT_ERROR; else fd->status = 0; @@ -635,13 +635,18 @@ static void qla_nvme_unregister_remote_port(struct work_struct *work) if (!IS_ENABLED(CONFIG_NVME_FC)) return; + ql_log(ql_log_warn, NULL, 0x2112, + "%s: unregister remoteport on %p\n",__func__, fcport); + list_for_each_entry_safe(rport, trport, &fcport->vha->nvme_rport_list, list) { if (rport->fcport == fcport) { ql_log(ql_log_info, fcport->vha, 0x2113, "%s: fcport=%p\n", __func__, fcport); + init_completion(&fcport->nvme_del_done); nvme_fc_unregister_remoteport( fcport->nvme_remote_port); + qla_nvme_wait_on_rport_del(fcport); } } }