Message ID | 20170602161207.6660-5-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.web.codeaurora.org (Postfix) with ESMTP id 85A3360365 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 2 Jun 2017 16:12:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77E3928556 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 2 Jun 2017 16:12:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CB9E28569; Fri, 2 Jun 2017 16:12:24 +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 0A2A128556 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 2 Jun 2017 16:12:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751215AbdFBQMX (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Fri, 2 Jun 2017 12:12:23 -0400 Received: from mail-co1nam03on0061.outbound.protection.outlook.com ([104.47.40.61]:38636 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751193AbdFBQMT (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Fri, 2 Jun 2017 12:12:19 -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=cz104hJtBx1rVTo4K+1NvCfQNpgQIaxxpqDVHwmTm+w=; b=VpfWhFAV4tFrlu+5XNfi1AMZsj7V9eNO5Atk0p1vnUHgyC0XkGGkmZJZN3LZTRw64vQrdskfQEbohBBxYkGmkY+Z+79+UFg9fGHzxUwoKjWrgXM7gjfUNr6Pfxrud+jAZkGrcHH1TEYU6KuWBuTsZCQKbHP8deQI/F+julEoEt8= Received: from SN1PR0701CA0029.namprd07.prod.outlook.com (2a01:111:e400:5173::39) by DM2PR07MB432.namprd07.prod.outlook.com (2a01:111:e400:243a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Fri, 2 Jun 2017 16:12:17 +0000 Received: from BL2FFO11FD055.protection.gbl (2a01:111:f400:7c09::118) by SN1PR0701CA0029.outlook.office365.com (2a01:111:e400:5173::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10 via Frontend Transport; Fri, 2 Jun 2017 16:12:17 +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 BL2FFO11FD055.mail.protection.outlook.com (10.173.161.183) 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; Fri, 2 Jun 2017 16:12:17 +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, 2 Jun 2017 09:12:08 -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 v52GC7fF006711; Fri, 2 Jun 2017 09:12:08 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v52GC77g006710; Fri, 2 Jun 2017 09:12:07 -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 v3 04/15] qla2xxx: Fix path recovery Date: Fri, 2 Jun 2017 09:11:56 -0700 Message-ID: <20170602161207.6660-5-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170602161207.6660-1-himanshu.madhani@cavium.com> References: <20170602161207.6660-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)(6009001)(39410400002)(39840400002)(39850400002)(39400400002)(39450400003)(2980300002)(428002)(189002)(199003)(9170700003)(105586002)(36756003)(189998001)(5660300001)(42186005)(50466002)(48376002)(106466001)(356003)(47776003)(33646002)(101416001)(87636003)(76176999)(478600001)(50986999)(80596001)(2906002)(38730400002)(86362001)(54906002)(8936002)(305945005)(81166006)(72206003)(8676002)(50226002)(4326008)(6666003)(1076002)(2950100002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR07MB432; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD055; 1:LGryKeQJXdUWnw5X2A6ghu7jUTPtYUsegLxNk6ya5fZb+hSvzXKbw8szNM/UPy4xFqLLijinp/z6GxnYoYODG3yMz19BmolCk69FyHqPcEMu1UMrZl6vxUP0pOoawsHiVGD+Vev9csLYDhre0A6QmPqACQ9TF4trx8vGS0AG6CQTrvzKqiOPUaopJniumg2Rb/xkZ8epOyDx/jTFYJa4rC4cWc3FP8Aot9OE+dBrgWrBYTZuA8j9soMjSH0V5MHDzXSjgQhhBOXFFDuLrdTmHO9ppJndW552UUH0JQFoE3Q6TAwPkY0Y1wzhbWCxvn7C3wa9qh4k0ZYTpTioKi5NRiq2DzNTrhMD/vnq4DWv+8Oe4oc4tBd0C16aXGifYxnawzxD78xJaJg7drUQiJwkqN11N/gsxhPZeUhZjXEJouZ3uPIpLUmBxpDh2eGbInau+95KE4Z6zq0hzzzSZr2GcE7/X3pLDKdcBPNrY2buhPDRUAhNjZDw2G7BVXFibSh2 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM2PR07MB432: X-MS-Office365-Filtering-Correlation-Id: cfb01de9-7bc5-480c-866f-08d4a9d223b8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:DM2PR07MB432; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB432; 3:Yw+NawNCkGb2TAblUB4vtveGFnPI/NZObsdMHHGuKW0IQywKLKOAgKGzIQVhcKyktoeIgV6scHXv9JOm9YtjPDJJ0AG8eCmZG6KObS4I3DnOZ51CMEheng4YA6ZubQhsbiOXklntvtGhEyZTJW2eP3W/hS1VGiZ6DDu7p797ezkaizcYhnKI9mmEND5cd3MJ6rszeJqec9DNLLOrKTPkGCZ6trHF5VOgOBfBlxKGi2u9U5arKLxzH8j3r8qlnfQ/1DtLOzvyFQJBgU0rH4nc2SofMBxvIC1aNmlhU6lMLj7Nf8eT9NtoCKSu+y5OqGgfcTSQ8FFtJFz0eL1wbbYg8sTR6VVLBRM805a7xXEGKVg+9aqmKVi1ugrwHjwLRH/HpmJGVa9hmdAYIk0uM/u7/ufkPu5EaEEUmWysBotMKXhI0IuUxym7SADQ37YpN1SWcVQG6oXarwYkfKAlizBtwUiVQuFMU061FTWTAKYax+Japzm5e6ObdI67zXk9PsJo X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB432; 25:WT57wJdGo1FbAh2PQaMAgtjO7Y7PlwQwHvpFMAzsZFp6UJ4aoIICyw0aYOEC/Jz7XQYuPJQakl8gbL/Ps9gPf0fj41AXGUCsTbsygscbO0dLzjMjQpb6ozoTTH5mfAtMoyJianQ5DDWekMP+OmSYhD7869gFIrOPjIGNxKuFx0+W4pSYhvABufcFrYTMtV80U9+2/WEoDcLfG9snZyxr/ckmcp3moD3Y3lAgm7b5f9h3zVCgYennZZzsvfXT1/CIYYxCFId0XavCQ8bHnjm2sN1LNXvdJhgbWpQAMBTZqvldlZjewhu0MczyMB/SWa4kQtPZ/yMEyezJqrFglpG+6w68Xlnv8o7EaIuO/gOb5KTakWZXhScGTh13SDkAKBBGd7H+64KKV8UmrmEqGG7DYukfwiJY8Sg9ZFwRKH/Vzzn6bzCFylF6RWxDVBEfNpaULbA3gabVekXMBBRDYni3vtilGKsuzuFLWPZuUvFLJ/0=; 31:T4uLiK+yiZbl7GaH1mg6Vycs8OSy8eoJM6fP6k+18NFkIJyM0tKIMTlDHgqhqRA+Us1yi1hlYBfDX8/wHhqNVat7xBjk4lzRc/owE6NNuJV5U4XSVtQTwwgdyso+kIXdoOQGFNBhcpCa1tQWatnVS/DGRW8aKL/xjEAqqmYypT5x2gox7ASShda18+RY83N8gkor6iawDiswrVho1E7l6vLlZKbBu8ioKSOo6rcREe0zbHzW4HE2IsVCt5OMHmkkg2zJkdXrRzImn4p4BEBrFA== X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB432; 20:/hnZeuakPn59m/xpjKkFejfuhGhhzaekzhQvCzINQgETZqM5u51HEv4eELDq6m0+OWiuGZ1BZu9n+her7OsCLDL6C0dgWI3HjQC29nUTCnQDghLzyFCUADk68tkOJu4fWFkXbiOS70vwmbs5rpONItZXptFhZwCSxIqVBmz7b7rmcwvcHib5tv+2w5zKIVcDsM5Q95EqN0epITVindu34HUj6c99zi9a4ZPhqGgcqLgkRjc716/mOeP1UzTc5CrfPjIOw1FHbSAM3jnehPJvMAr8urZ+jnvERRdGDnx9RHNZ9c5fsgRgKOTvyM1gpJN9VcR8VvkSERIjhUuzA+cFIxuy33jlXVfw5UxDQH5l6v1ZDFljTHKr19r/SONo/Mi2eL25tM2QWNWehCxbh5+AbIHEIFHjXEp9DSTlYpbaUCllZqasxkVe18J/Ma4rwy8N24kGSK8g09zo4sZkcijQ6ItoZfIf6fM8+Nuxf0uLCci/kdvLR4Lwbe1S+sUktEGB X-Microsoft-Antispam-PRVS: <DM2PR07MB43283EE2009729A3B9B5CFAF5F70@DM2PR07MB432.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(13018025)(13016025)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6041248)(20161123555025)(20161123564025)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR07MB432; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR07MB432; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR07MB432; 4:hq6nrrhvhCPG1Y16+AQU9MksZvFAIrrsHHGhF0redO1?= =?us-ascii?Q?J3TyV7GsyRpYYXe1TRmc+RCRJxdn2Kci8wgbr4CZ03SyS88Ivn+n+tNPyXfd?= =?us-ascii?Q?AL3nTlY2w2t+tL99JkRNnmQRtRsklFRqzShMYZdQXfvHQ9vxTHjhV+YGhbJy?= =?us-ascii?Q?G991mgrDSU+VQ9M3F1UIbzIJQeQB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?fRGC8pTXfMhmBOgm1DFS5U0U7dvroSnZMepswtqx3JNQ3SyYw/ZIw+sazWCn?= =?us-ascii?Q?lf3Yg5RBuPwWQZzUhXqFkTalrB8EJ/fBx7VBYZxqenqFjvMAIPwd/aL3uram?= =?us-ascii?Q?bEmrqfGYXtjhfOp3be+/UpKRKKXNqs5Br2kgspVKcFdG7VD+LkL699Q=3D?= =?us-ascii?Q?=3D?= X-Forefront-PRVS: 03264AEA72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR07MB432; 23:Z34G3yZQIrvObuXB+Nw5Ju3PLqoN2ChnAzLNh61aZR?= =?us-ascii?Q?EcyQAAURdjT7NRHnKaXvs1To7IefRuOEUAzmvZkTgXpD1eeO1XBsFR0iUorx?= =?us-ascii?Q?b6D976bMkBAI4BnoGLzYFnIuj0n9Vi6AkYHV6yvIal3i/NB741k5gJzl7opB?= =?us-ascii?Q?yHLm3Dip8Mi4QncF8GKRNUl2CBnrvO3Bg4m3JgT3rRuVG4b5cowAIlNkCVry?= =?us-ascii?Q?p5epEYcy1R2Jb3FYhKrBOXXUdBjpYlsw7pbDzwo/HFUud2LjjLioVfli2sEq?= =?us-ascii?Q?h/+9tfL4CjAfSXdey0WCjsD0uX7fCYxJFn6kiLZGlyZJezqRAm7umCXTnjSn?= =?us-ascii?Q?KPCM6FWjA2cYoT3t4ca3Uqvg7js9wtrIQ6jdPfACCMQML4ldZD7jznGoq/Tr?= =?us-ascii?Q?c+QkU1/rZ+u5jpDI+uaEahAgxaY8iONS89PIZxQYfG0h0+1OtqG5/yaSlqr2?= =?us-ascii?Q?4eDf2Vl8D0skYqk68RgjskDU6/H4up+PvVh7uMNZcYOsESC7f3aMFZ+RNDEM?= =?us-ascii?Q?rgcm9yfpRXFsV9QmmR3zekzxhNQwtONJUaHrcnyfljIxvsjF9vTadPhRdduo?= =?us-ascii?Q?wR4kn1jeHncVNsO0JaPLNJgEYEj8r1Eed7gch4/vkcofPlxfrF5Q+Sij2Wb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CvLFDM/6IuniKlned81xpiB+f3K9apKfJI8OzgkTxwsQ== X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB432; 5:Ar/tilxejmrlq01ltcQBqpjhMhiRMdS8znV/ypn2hvVXsvez8XRX3aSPJ+qVx+E1TuJR29zq9fUiT8g2Gz/JNEE3iMrMNVAnAT940TohzR6gidemkLz65ldT7l75DHxQ8afDXFcq5UtVJZoFXCFg7daQPYkqFPqkJhn3SGbOzOp8QTohY9sjHZe/7o93Piw65IylU/qD/NgLdvCHm7nCxZ1r8FaAJCJtGwLrZxOYOeAGI3gYj0PkOK7SsLS16xroLo3kUub6CFzlHEepq9sr6lSPk1ACxjDTJgbogovdSFdOO6pnreDvC6VTU6J4ea5EouLe41Hrpt8fU74KF6gljiPtwtf8MkxDx2LvfxaQNb9J1pvQbQ6Aob0Ik2Smjre9YfY7HLSjKdP4rlA0lpKIDxEwafuCxLokU4C7UT6szPT/cPrBOZkEh/AneNsmHSCyMrYbPHMcmTQaKyS6cKEBB3gcoi5oj9PibSjK+r1JK8laGTzL97QvpCWDc8OOnXFZ; 24:7WxifPLIBY9vTL1gDobbgO/1BUi18y878XtsIwkBHnoPjueq0XpgcKLLuxWJhpIo15obOcqOIJm9xHxi5OmQebTPfZuZp5fN22ZsO1z3iB4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB432; 7:Q985RpzXmUZUoXXasKV6svLUxskqKJBrwWxIxkyUPwjYblfocBcGkOp9zSe9z6Rk5hKHL7M4PTtSs1pOYJZJkWAqqRMOaMkqMlZ3L0iopjjJBiXkRGg6P1dhp6oRn932Ma2KPGaAoq0mZ49T892eewBVj+2HAQ0IPelCjQuYGSp/g79lHwbA/4T5PRsxJ0aZxhUQljbWiZCxTnCZk6+rUh1/2jYrytkre5UQT9wdNisIuU2YbUxdufkkT4883IXDL4CKlpHHWa33uUI1uA/j2IM6lHmXM9foFqygr0cwSGFP4wbGMKUrBimpNsTQDRPYfk2dbaoylLVqHX1DyFGvpQ== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2017 16:12:17.0172 (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: DM2PR07MB432 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 |
diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c index 9bc9aa9e164a..5acebaf57796 100644 --- a/drivers/scsi/qla2xxx/qla_gs.c +++ b/drivers/scsi/qla2xxx/qla_gs.c @@ -3118,16 +3118,27 @@ void qla24xx_handle_gpnid_event(scsi_qla_host_t *vha, struct event_arg *ea) if (fcport) { /* cable moved. just plugged in */ - ql_dbg(ql_dbg_disc, vha, 0xffff, - "%s %d %8phC post del sess\n", - __func__, __LINE__, fcport->port_name); - fcport->rscn_gen++; fcport->d_id = ea->id; fcport->scan_state = QLA_FCPORT_FOUND; fcport->flags |= FCF_FABRIC_DEVICE; - qlt_schedule_sess_for_deletion_lock(fcport); + switch (fcport->disc_state) { + case DSC_DELETED: + ql_dbg(ql_dbg_disc, vha, 0x210d, + "%s %d %8phC login\n", __func__, __LINE__, + fcport->port_name); + qla24xx_fcport_handle_login(vha, fcport); + break; + case DSC_DELETE_PEND: + break; + default: + ql_dbg(ql_dbg_disc, vha, 0x2064, + "%s %d %8phC post del sess\n", + __func__, __LINE__, fcport->port_name); + qlt_schedule_sess_for_deletion_lock(fcport); + break; + } } else { /* create new fcport */ ql_dbg(ql_dbg_disc, vha, 0xffff,