Message ID | 20180725170120.10269-9-himanshu.madhani@cavium.com (mailing list archive) |
---|---|
State | Changes Requested |
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 B0A4014E2 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 25 Jul 2018 17:01:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D4D62A84F for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 25 Jul 2018 17:01:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 988FD2A877; Wed, 25 Jul 2018 17:01:40 +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 7E5342A854 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 25 Jul 2018 17:01:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729507AbeGYSOK (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Wed, 25 Jul 2018 14:14:10 -0400 Received: from mail-co1nam03on0073.outbound.protection.outlook.com ([104.47.40.73]:56252 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729456AbeGYSOI (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Wed, 25 Jul 2018 14:14:08 -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=OSv7pfF5VzJa0zyRtGH6SJ84LqBK+JLiXS9F4EyMPcw=; b=be4cO+MPKbfWQcLhEVn/CZmj+8XoxmfGp3Hds0iMoZ4KnEqdFFTS9GIh6JXEQ7tBY2R+hc3ufklWfXab6vsfR6osIJKUX2Og0MSdD0yINajyojCDMPHL6bS+XOF564BYw/8CNg6JwuksirdemcFHtUnb0rlO2d2HFi2UhPVvQy0= Received: from DM5PR07CA0034.namprd07.prod.outlook.com (2603:10b6:3:16::20) by CY1PR07MB1461.namprd07.prod.outlook.com (2a01:111:e400:50eb::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.21; Wed, 25 Jul 2018 17:01:33 +0000 Received: from DM3NAM05FT022.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::205) by DM5PR07CA0034.outlook.office365.com (2603:10b6:3:16::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.995.16 via Frontend Transport; Wed, 25 Jul 2018 17:01:32 +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 DM3NAM05FT022.mail.protection.outlook.com (10.152.98.132) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.20.1017.0 via Frontend Transport; Wed, 25 Jul 2018 17:01:32 +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, 25 Jul 2018 10:01:22 -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 w6PH1MwC010336; Wed, 25 Jul 2018 10:01:22 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w6PH1LDC010335; Wed, 25 Jul 2018 10:01:21 -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 08/16] qla2xxx: Fix session state stuck in Get Port DB Date: Wed, 25 Jul 2018 10:01:12 -0700 Message-ID: <20180725170120.10269-9-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180725170120.10269-1-himanshu.madhani@cavium.com> References: <20180725170120.10269-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)(39860400002)(346002)(396003)(136003)(376002)(2980300002)(438002)(189003)(199004)(16586007)(336012)(80596001)(2906002)(86362001)(14444005)(8936002)(110136005)(72206003)(54906003)(316002)(478600001)(44832011)(69596002)(486006)(356003)(42186006)(50466002)(87636003)(106466001)(126002)(4326008)(11346002)(1076002)(106002)(5660300001)(476003)(50226002)(8676002)(81156014)(51416003)(26005)(186003)(36756003)(6666003)(48376002)(76176011)(47776003)(305945005)(446003)(81166006)(2616005);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR07MB1461;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;DM3NAM05FT022;1:o+uyfgDYE4M4ivoTwsBBU+ll+6T3ZFR/fk+wTGOzLwIsIEy57T5XMIOzHtBVsBAtFAX/QxaQDjHj115KICnr/KHEu+hw+qGoc4MzJivd4SLx1/YX6BycA9YVRS/KUXfe X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 07d25247-cd4e-4bc2-90f5-08d5f25045f7 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600073)(711020)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060);SRVR:CY1PR07MB1461; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB1461;3:XgX2J+Ngj7Ei9cTxczTEu555XoxoBwP0BL03YJvsFJS/d3QA3YjLilcpCyD1KDaLzPUS3rNYONJ93pR5fPbio5ZzcHyTDzZaZ/h9QBJP9pSkuKSYa/5aroJQ+HOJ/I2/cdeaJMjZquExWI06+4kbRz4RzHqDdpJf8AAsHirYSzlVWe3Xj0WkseJfnlEJ1UoYQzSnbDv151CExTn7dHm+3VyJDs2cUNd5feqXoH0NeSrTb2Cv7pihlsHNWv6W+bRzKNekso9DHtJ8m3oOnIOxyuPEXgYPzQIJ4r1CJFugwvjSx8sj5wm62Mi91ddLfDeAUdW2u0XDPVwIh4LIUxL/j4Y3SQ5SzdIbluLC85v47xU=;25:afF76sfaZt8DvNKfd6H/J/wjaOXT4W0P02svwddLIRIMqzy5sFGdsVTbi92rmcNaDUFWD8D+jTEDjaYO2leXmL39a2vtT/qzelObTIhZrhUdy4F/Q4mlvPMDdBd89xO7VSe1N7i8/ccm45sO9uIQKhoggHIXobg0VjxbimxSzbpqtLqnvBQI9qrSeugs+qPHd1fmuU0d9SEGZPzVUbiR6gjnzStTFQiFJeFaj1mqEZ7E5iiW01qzsYwtV9/1umXiOigM5MVF/zW22o6550M/0p+fYCeggMr/UsowTxRGF2mnXWZSt3Oe2S5MPVEWq1MYA3GdQXm18ask3ElN7DgD6w== X-MS-TrafficTypeDiagnostic: CY1PR07MB1461: X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB1461;31:o/QCp9HJjN6ijuH5B4AEjgoEHa/2sQWIsG7HskU143Y8o6tOEky57XtW3+VemRSQ/LWcMOLRWkV8sdOK5RYJLCSI0oLy1jNDMhXXH3faQJvTDll9X6O7a810dxv9L3GH0gHePwOGfa9PKrT1DdgcCWUZ0YeJsIJC12Mhy1XPNyNdXdKITWLZQKso5PV8zC8c0Emgv32w/5acEZtrwRhEvj4qcJ2xwyJ00qsRdVAeGpQ=;20:R1tdfB5WLqfRDijZlr5gCNrfJpplnVd+Fk5hx3gCcyiZ+LrZTqtqgIAS1H7pgow0LuQeh8zSFXAvRW4FMdR6BR6FiXTvA0n+8P/0KzRun9BVSbRBcQysd4DKBjbjNF7NtTaFBoAes1yO8sVm36Gvg3Kb14ccKHFU24QPXEM1pDXvisHXmHzgqBUrgHH9qcsqbBC/etD9+ggK0azGtWEcI+CmlNYnOksRAUOFhWYXrhOoxwFylM25Bfc4Fx5HQs6I6jaQpX8fZG2qnGiUGD8y1zpfU8fNEVz1PzI7rWUefDUrcnGiK2WzEVt5Kp1/QXsRgwfeMpXmSkLrIOCW7qR17D3ii2cYwBjpTVPKKx+lJVK2Zy1n6a1F79FdUsa/uRkiqV3TXegrD7SiOkDNO6flIDYQPQ/d5WHm/5utpO5B6wwkeggXpKSWM19Z8brhTfe/bE+o6OMduJt40ZL3o7PDmWxIEE8NL7YZMosXb+zqqdoSALjJu02GcVOvaC0pObrV X-Microsoft-Antispam-PRVS: <CY1PR07MB1461CB1214F21184EF7C10B3F5540@CY1PR07MB1461.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93004095)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:CY1PR07MB1461;BCL:0;PCL:0;RULEID:;SRVR:CY1PR07MB1461; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB1461;4:qXxJkfBRfx/Jv/1VMTAV8IgCmwKWbgRANNh8kMH2qIMWagtmcxQ7JrJ0an0QIg8CN59dbQ+RrKJy0zhcFRTQbflcUn6mmZhZ1aPD7VA5BwC6/DEaAcyynYK0ZEqHfG7s8KlTF6jnH0M1prTsNS0WlprpMJ6HAW4sBBd6GprwEIowqyRLoX4zSAkrpZOPc9JAIvQS3cNvaByykZ7P3Ka7W3ljlvM/G1Amrc8n9TGho3T6F4yOkylFhYp9VUbPxDaU3gBMPGG3ifNp43kQWW71QA== X-Forefront-PRVS: 0744CFB5E8 X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB1461;23:WnJRooZg0wj4Perz8EuZR3K2TMtGbwVFxd3etc41P6DBPhmzwgpjBO+3JOosze2VVuL6Va5VOjNdFakiyPciR9+XmB65IpoqjPSpO9254cL6+o5S5ubLu3LlsyTCJjtwPhHdnsm+A/E1ZLNHuEBx3/USBOfLCGTz+A/d8HdMUmIDGGA7LL1hnmcK+UDfPfQ5yL5gpaZDwUOG6V5kZx+rRw6FJavALeQ/7GEPXhmlBHYrv0hiHYA76cN9TdkBQRBHgBlpY7o0+kJtMlzHxzjMj1fkXAjP/zaOtHm+pZInhj+Dgm4zhxc0iiWrX9Y4/u6h1SwsBTY1syoBrznVTr/TsmiXAkdH1sDejeUpuf3WpXB+CPeWF7+mVS6nWwhU6MZqekG9LOeJY/HJV/ZAIpsiUxnbaNRFFHQjmRd4MM9hJlwHa9sgd8/Dodf90tD88xulCTlcp7aTFhX+G/M4XTg9r6LazS0hrkVIL0GnVr93MwUN96U3HMdVM7X/oFAwInyJHVQgHT+TJkWyybAS0CoiD0j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oFuWd2twlxH6spRHDN3mcMILBDH5EGDQ7kdQZ/YwvsnSdjpizFH9F/NW5Fed/mRvB2rOp34ZcLlQKuS8O6vB838+fPoHu5T9fliiAeKm1j0DK1WXeOE7NcKr/iAkpseFs8r72/m68e3wism63SaimmoqB2/xGtO53JL1ODlfrm296DxyzyODNeun2CbBWXjjGe1JTxMjE9uiSGykiKbelPrAYVDJNiT5OhGqF13QAHT2ruGqcgjbY8mvSlXcvbjVur+J97R3CWOo9XiiyZVYc3E6yoYIZHwJLpxvX3axv1Kut2CV013+f2oSOYBEejUJZyssQgxQ0421zSI59JyWsalVOso1ruiFK+A/anfqhevnlTaktwrStaokhpL2Vf8NMqtfE2h4Xk/3D1BVkanTucOsSuMBIukcpaunmEe/A==;5:yXM4ZNAZTYgK/VYcNRpyTMyc4VHo0yAVhRRnxUTF2hZ8dLx5S9pGb9A/+js0h/2qfBFLb5NjQCuaT7ROv9vST4nkNmlmxNc+ykuEeWYcMBQMbTi3cSSpV1Vss2tZ9471KD9Jba8dbvcl+kOLQLjckTJpPu8lB1AIATRYD62tUcc=;7:m7L37sec1+wBw3k0VzQftLGIWpzkY2WVMZhsFv1dCG4lG+bSQPpEiZaCslXjygjGeozS/yeMWF6FEdL3F2Nm608BqZhEe9WeK5uRpq/4FwnAkPEUhlBRcWhgUVjiFhMLJZQl47TM4y5MzDcc4Q1ib9cteY07RPKPoPZxKUuKOm3IH8FAaCx3NmJ1qJnKMbeUIJj9HystFDh9ccUNvesCdNaAH4GbTsw9V0LlVc1VZOm5RXn48JTlpIo75Qithl2A SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2018 17:01:32.3732 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 07d25247-cd4e-4bc2-90f5-08d5f25045f7 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: CY1PR07MB1461 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: Updates for the driver
|
expand
|
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 4e4d491937bc..dff4dc588947 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -1155,9 +1155,12 @@ void qla24xx_handle_gpdb_event(scsi_qla_host_t *vha, struct event_arg *ea) case PDS_PLOGI_COMPLETE: case PDS_PRLI_PENDING: case PDS_PRLI2_PENDING: - ql_dbg(ql_dbg_disc, vha, 0x20d5, "%s %d %8phC relogin needed\n", - __func__, __LINE__, fcport->port_name); - set_bit(RELOGIN_NEEDED, &vha->dpc_flags); + /* Set discovery state back to GNL to Relogin attempt */ + if (qla_dual_mode_enabled(vha) || + qla_ini_mode_enabled(vha)) { + fcport->disc_state = DSC_GNL; + set_bit(RELOGIN_NEEDED, &vha->dpc_flags); + } return; case PDS_LOGO_PENDING: case PDS_PORT_UNAVAILABLE: