Message ID | 20171220065644.21511-40-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.web.codeaurora.org (Postfix) with ESMTP id 3CEFB6019C for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 20 Dec 2017 06:58:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35C5829649 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 20 Dec 2017 06:58:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A9F02964F; Wed, 20 Dec 2017 06:58:02 +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 B26B929649 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 20 Dec 2017 06:58:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932550AbdLTG6A (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Wed, 20 Dec 2017 01:58:00 -0500 Received: from mail-sn1nam01on0051.outbound.protection.outlook.com ([104.47.32.51]:10368 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932458AbdLTG5f (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Wed, 20 Dec 2017 01:57:35 -0500 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=U/rKdxYRXepj5YtJWT702hCD5hs99+SarM3g1YLxUGg=; b=EGSJ0+ZlwmNWBmgdw/abu1s5R9LKGYJhD6R210K2VIxJmPsn5xvSfmOELNWh/2RR3y2d5CAqsQQ8LJB3I/Z0lu0ENGMjUI2iiyqGUPAxi/Lz8K3Im5/ZibmFzETSfw/DE6v7Of1S4FYSWZXv7/YDcQ5SMaISIGHeY3ZPjrriAH8= Received: from DM5PR07CA0030.namprd07.prod.outlook.com (10.168.109.16) by CY1PR0701MB1948.namprd07.prod.outlook.com (10.163.141.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.14; Wed, 20 Dec 2017 06:57:33 +0000 Received: from BN1AFFO11FD037.protection.gbl (2a01:111:f400:7c10::112) by DM5PR07CA0030.outlook.office365.com (2603:10b6:3:16::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.345.14 via Frontend Transport; Wed, 20 Dec 2017 06:57:33 +0000 Authentication-Results: spf=permerror (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: PermError (protection.outlook.com: domain of cavium.com used an invalid SPF mechanism) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BN1AFFO11FD037.mail.protection.outlook.com (10.58.52.241) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.302.6 via Frontend Transport; Wed, 20 Dec 2017 06:57:20 +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; Tue, 19 Dec 2017 22:56:52 -0800 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 vBK6uqEp021702; Tue, 19 Dec 2017 22:56:52 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id vBK6uqGG021701; Tue, 19 Dec 2017 22:56:52 -0800 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 39/43] qla2xxx: Check FCF_ASYNC_SENT flag Date: Tue, 19 Dec 2017 22:56:40 -0800 Message-ID: <20171220065644.21511-40-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20171220065644.21511-1-himanshu.madhani@cavium.com> References: <20171220065644.21511-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)(346002)(376002)(39860400002)(39380400002)(396003)(2980300002)(448002)(189003)(199004)(8936002)(81156014)(8676002)(81166006)(69596002)(80596001)(47776003)(50226002)(48376002)(478600001)(85326001)(87636003)(50466002)(72206003)(2906002)(42186006)(316002)(110136005)(54906003)(36756003)(305945005)(4326008)(59450400001)(5660300001)(16586007)(356003)(1076002)(106466001)(86362001)(2950100002)(6666003)(51416003)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1948; H:CAEXCH02.caveonetworks.com; FPR:; SPF:PermError; PTR:50-232-66-26-static.hfc.comcastbusiness.net; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD037; 1:/Rrb86BBeceNRfzTumKMTNR6ldv13xPGN2Qx6xYLkf2TdGOfFMvFKhgeFsgU96+2DsGZ9ZuDQBiGlhMoYaRRkjngSTTTvXlgsNhh2zYh3s+zrlh2NEdDCJoH83d+BH/K X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2a12a59b-867f-49d7-f857-08d54776ea4f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307)(7153060); SRVR:CY1PR0701MB1948; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1948; 3:h0RZJ97QCVcryWH5PZvVgwR8CkTx78rrcN2biaP7urRzi/DdxZ9NVacv1n3+EmXHRxMR9W05rAHXacP/xWU9uEUCyaUmiibcL+lKJRo05f0uxpQ/QPTrOcgzFngc+mIPN4EQnaD+kz0tALrg1m3r0nsZfItwA8s8QvQPdcn40Gf8j6zuP5iUKFyFfY2J6etoUgRm86wJlvrHvq2CprXLBgpyKR01j8l+KtU7/ttP7UE0H2DR7EZmcNUxsy7cRe7Ycmw7WxvCrB2dJk2og4uyToNmlRSwHNxR008/IrZ3FDgZWk2HxtrmYAH/obt5wYQjrDnzVMA4F613EXqAid6rpGLJbH3gWXB2GbrMV2jTy8g=; 25:g8UD+uAkN8J3HzeIYHMKBZ6sWZlPH+eDchPxbf1EvlCa0JI37VxpsWUuZvd14Vn5+4Etna/Ya+ptGB+MMeRPU3WNmb9INI2Z02C75xUSW3f+44qt7a4dSpJjbZtQj1CIRsVmF4aBZOZFFTeauSvibqyqE3hKxtjcSVw5i0A+mAsW6Dq29NNdT7K0i5WUORANSwnM0aKpABs6lXl6bq3o2Bz/u47StSaAed8gBMhRNAvLdV5Mqgvt3lS54giGMIKNF+qzBpp4NxweMZ6nRD3XspqZI5xE9jKtVtF+8Rahqs6VFGZmHQTeDjkcNfLsQYUr4I/zv5yQf4860SSAjiLlLVOhQKzzqvsm/KodktTihYY= X-MS-TrafficTypeDiagnostic: CY1PR0701MB1948: X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1948; 31:VI7BZZGbXM53NDKeNso+flP1DVXmm8cWcxW+rP0jEcP/cex64XuetiugcLsY+rRemNuT8PFpRU8/4Q7RamUhUOfrfFaZVjEhUeKMMgn2u1B3nJwevdVq2I1TvmHkw1gklGPyoye/pxh9lhiOCsOf/wW36K0JehMFg0HjnaDprxR0MuSVRfyhR2TX8FcsZ5Q8AKWN4ScttR26yw/6FiaF54ByG4BuMn9Hf1g724H+NdU=; 20:TJ2nXG3I8JUxrqGJm6X+iatzBCwgFLxG/SWeC4XtnyPTYw5Q/iEhvQc+67zIp4aXF3mFWEJ84ixIv/1JVYT6bZLYAZ6SsnSNARkLv6XavZhLuxTOuG9N9uLbBWuACuNDigKpjlQ/ZVeVZd8HPCZ1KArsZ184x4DUmUq5NrapIFbZMXNauCe8Kzl2T742L6GqcibBV3dIyV+FVjBCJ5fGYjmBn9vtMnGP4kom3+Gig3SugNOSaGeuHFAsV7QbyiT8WbDT7fud0y3bI+HbgR9mHntNIc42hNE2N4GSSo2kWKGxvXYfevv/YhWABS8s4OTpaM5eZULI2a4pcAIE8F32wGXhneQxUv9ac12o0r9fp7fyRc47iIp8KtDcQBpe1zeXKbYhNmEpLJCaaI5nExWsPC2e+1aCUMyUcn7Gq2fSa9TeTzd9NWxFcjSLqQLulxCatSuPrUMonCHexboGU0NAwOcFQrClu8j9nBN4L9XeH7SnPzkXPBT0SfpMfBKarife X-Microsoft-Antispam-PRVS: <CY1PR0701MB194893D74CADB3426A9CA8CCF50C0@CY1PR0701MB1948.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(209352067349851); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(10201501046)(3231023)(93006095)(93001095)(3002001)(6041268)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:CY1PR0701MB1948; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY1PR0701MB1948; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1948; 4:LJpgu+UyOHPGtSxR+l01SRPK0M2fOQVeCjYikqK8bZ28QKXZbULILaOYYZ5DY0nk/7flRqvCwnKuinR2Q/AHflZrNJ/bIL5xzat1LXRT6X/cQRQp8FMrBxfaMJKpuTY2aM37uJ5PJeJ3KbhbB1kloG2XeplcRvhJmFmij69okFx7qPQ3NSnG9sWhLRra3lDB8G7z53QwW659pa2QbrAWwgcKq80l6zBDg1DthaNjz08cjGNrEvw92TbvkMOZqkqgZA2GyvfSd2NbitmsruxLInNnGxqygLSdTz5h32LqravLhHVsgpcErLPMuKKs4lw6 X-Forefront-PRVS: 0527DFA348 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1948; 23:o4VW69spC3+400GdnNPTyogMld/mkF6CNNDgqeu?= =?us-ascii?Q?w/RtfCzoRNnRCKEuy7/49kPR6TVVSlrdaKlYIaJTIoMZCLHaybyCGo2N0j4G?= =?us-ascii?Q?q0Wlh7bpGOEuqykKG3Z2pn2N060oyk9A2NEp5qVnlMceRejqtjSdqzMeQj/D?= =?us-ascii?Q?UJlULQ/moSL5T/JBl60pFDabKVi4Y8fW7n92U9ZEiiyDp62KhjynnsRQ1kG2?= =?us-ascii?Q?7tAA3kgxwtMuZiv7R4GXNxLsBmfqe2AtmLoq/Wz4/zmaxWtruCYCswZAAUXx?= =?us-ascii?Q?gW3MJGLxn3TFIGh2rqtb5MLg2m8L4E6jrpGxStZETuaM75+THUlB7t+t1nsQ?= =?us-ascii?Q?+I/s5DPW6rjWdygMeOgp5RH13YTnL2BIQpLLEB0aSqEcrN81j98ZT/5Fxr91?= =?us-ascii?Q?djYuooBX3+wSeBwGMsokFG+I/U8JtCTGdkvh3ctsQ2kHnuph0lriAVfuvFAo?= =?us-ascii?Q?2v3Nrvk0uNQONdvezYR+m+gFeA5SxB0A4w4dqjcRWR/w1TgzrcEIZJ1zwTCx?= =?us-ascii?Q?NZzrK98Srtb1b8Dm/4mITPezru5dRM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6rBS/VRxJf071HpvZOUaF53dRVnNNopPS4jxtyj7zSFPe8/fYh7XhUSRKYsqMErVwTf1TWVIX1A28sOGBrUXD/NNU=; 24:saFf2hpF3/SVNLYpnX7ccM4XQSA6mcYoB7qp6k3OZHjOCF1aje8RtO8kmD3/oEM39YVn7PhNmiu3hrFwCxgds9yWBOpqydnu4MJY//zBo1c=; 7:A305lDIgOc7Em8MGiBbyyAMJ67k5c/8lcvmdFAnfNlZkz31sK55WNPhH6MJzp/obp7kiBocVLlDnOJ4onBgsQSSbhiIliaZJISyTA2KBuuPHDuXekljhBU8m3fLnFYtt7jmm/CgfhJ8n+I44vL9sEzlUwo8W083X90/vpNtDiS2caYdMxqvU3A8Q7chRHM9T+QDm6suPpY3vP469AVFCeEEOhmIneoijSyi/R3dSS0KwlxHZipJJNT+2ZRG446ob SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2017 06:57:20.2027 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2a12a59b-867f-49d7-f857-08d54776ea4f 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: CY1PR0701MB1948 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_init.c b/drivers/scsi/qla2xxx/qla_init.c index 85bdb6928ea2..49a8f2666f55 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -720,7 +720,7 @@ int qla24xx_async_gnl(struct scsi_qla_host *vha, fc_port_t *fcport) u16 *mb; if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT)) - goto done; + return rval; ql_dbg(ql_dbg_disc, vha, 0x20d9, "Async-gnlist WWPN %8phC \n", fcport->port_name); @@ -734,8 +734,7 @@ int qla24xx_async_gnl(struct scsi_qla_host *vha, fc_port_t *fcport) list_add_tail(&fcport->gnl_entry, &vha->gnl.fcports); if (vha->gnl.sent) { spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); - rval = QLA_SUCCESS; - goto done; + return QLA_SUCCESS; } vha->gnl.sent = 1; spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags);
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com> --- drivers/scsi/qla2xxx/qla_init.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)