Message ID | 20190213185324.21652-6-hmadhani@marvell.com (mailing list archive) |
---|---|
State | Superseded |
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 DA06B13B4 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 13 Feb 2019 18:54:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C955C2C95A for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 13 Feb 2019 18:54:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE0B82DEAD; Wed, 13 Feb 2019 18:54:53 +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,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 818752D52D for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 13 Feb 2019 18:54:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403841AbfBMSyv (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Wed, 13 Feb 2019 13:54:51 -0500 Received: from mail-eopbgr770071.outbound.protection.outlook.com ([40.107.77.71]:56224 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2394314AbfBMSys (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Wed, 13 Feb 2019 13:54:48 -0500 Received: from DM6PR07CA0042.namprd07.prod.outlook.com (2603:10b6:5:74::19) by DM5PR07MB2908.namprd07.prod.outlook.com (2603:10b6:3:9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.22; Wed, 13 Feb 2019 18:54:47 +0000 Received: from DM3NAM05FT046.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::204) by DM6PR07CA0042.outlook.office365.com (2603:10b6:5:74::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1622.16 via Frontend Transport; Wed, 13 Feb 2019 18:54:47 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT046.mail.protection.outlook.com (10.152.98.160) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1580.2 via Frontend Transport; Wed, 13 Feb 2019 18:54:46 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Wed, 13 Feb 2019 10:53:41 -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 x1DIrfsO021707; Wed, 13 Feb 2019 10:53:41 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x1DIrf0i021706; Wed, 13 Feb 2019 10:53:41 -0800 From: Himanshu Madhani <hmadhani@marvell.com> To: <James.Bottomley@HansenPartnership.com>, <martin.petersen@oracle.com> CC: <hmadhani@marvell.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH v2 05/12] qla2xxx: Prevent multiple ADISC commands per session Date: Wed, 13 Feb 2019 10:53:17 -0800 Message-ID: <20190213185324.21652-6-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190213185324.21652-1-hmadhani@marvell.com> References: <20190213185324.21652-1-hmadhani@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Matching-Connectors: 131945576869502413;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39860400002)(136003)(396003)(346002)(376002)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(97736004)(446003)(106466001)(6666004)(2616005)(126002)(476003)(356004)(4744005)(1076003)(85426001)(11346002)(47776003)(486006)(36756003)(105606002)(53936002)(86362001)(68736007)(4326008)(2906002)(36906005)(54906003)(110136005)(8676002)(16586007)(316002)(8936002)(26826003)(50226002)(80596001)(305945005)(26005)(48376002)(69596002)(51416003)(81166006)(50466002)(76176011)(81156014)(336012)(42186006)(87636003)(498600001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR07MB2908;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT046;1:WN/TCMlXkr+9rsAmpbYCi/hHB0iglHclpSomcFFsLCqXDe26wvy/UKo7i+49vr+qxlhbbgCxEwKb00s5E8JqCtBYPBKmn2WBvMPagso7oBNSzI9y6uH1tJbU+D1XVu4xqXVTNeX5GD2ZMYmLE2pAJw== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3feee374-045b-4db4-a2a8-08d691e4b967 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:DM5PR07MB2908; X-MS-TrafficTypeDiagnostic: DM5PR07MB2908: X-Microsoft-Antispam-PRVS: <DM5PR07MB2908CE950A871036A92E2E11D6660@DM5PR07MB2908.namprd07.prod.outlook.com> X-Forefront-PRVS: 094700CA91 X-Microsoft-Exchange-Diagnostics: 1;DM5PR07MB2908;23:BG6fXZZnLBxvLW4FQbPZhTgNKNqzZSN231b3fMS4j/2UE73IhHDrPry8VkAf7sJleqiGbBaqu6NcryLkwQHYYnt6uAXkhCIS+o257zvMnshMvw97lq+/aFr0zYOytpaQOaMmlz7kZWTIizIbIVASlmC5M4hkBUJ9DN7jSQenmrwlttbDtha+ssc+DKrWkstnUqLCTD5rRsxFQNjZ7pK2g5n/fbui7xA+6yv5ABL8mFespBJfJw64u0Q//RyCEO9Anxcb03w29g9XHsByFhEMkyfu1HQw/+Llhfu/57NiVblnIKLIx5XOc/Op/SmsV/kyQG+dEwrFManxgbexO0ZHHLljUFj0tXYesmNWE/1bkKUNpuu5c0NTZYrtmgFaTM2ZtPrCP2R7W6HHq/C9SN7nqDYxKeM0nAaxbGOVa3DlUOhxOsp/YHufJoQsAHfhWHjRLX28hjh7M/8r/sirbCYFTj6T2dM1Lpc8/x4608KsFVuRdK9BNgCacA/LYmpmx0segO3q3Bm1sP7+BDAz01vuP7uSaeSFn2u3wyEWIQZkJvpEd4RIcFs3WIABeUyBwVoJRdWsd2986anNlWMVDkHu98fKqr5b1w3Tf8a9IcZbfE5yNnPedSDjk4cGC2E2D3qI+OeC/uyuUatvcEfJfXl9gFNhi+D6Yx7mjxlsZ/lPA4tbvl7A5/HZLYbOym9Uq0wJCPLiRGuJMy8CJtmds9jJ282avf0bqubMoUNklGbqoOJW2K5MfzsDaLzcNCoqI5iKF5AfCqDgESXTsfW/Dw14Q+39PMUh+YdRbnbq69k5AbUWGnTRF46LE2UxXvGozLzEXi4JOiNov0KCP1uKo+Z+6PFF4QmNbdlLElMcBKOKVU/NPjKrQtnJbYq6ovoIRTDdvzX7fZAHib/aKQ/STmrrMPZOKkRtEugtjju4rY60r71irzpLdzssWgdpCcPGD8YH0pPqlSGTeZNVCRQE6zb+5RKGuC71RDl7DpS2yl1YjMz2T7uTKyaAWO+Y9QHDTtjg2uxTLsb+Ao1nom3OgsbK2vDCM0n15+9h5hVXyKKmA7T+kGSsxPFZpxBXaxsbzFNzh19zx0S9K0JlCrLB9ZkgcxGJ+u+Yxt5kquC5u3ff7f2w6YhXi0Jmi1J9o3lFYPtHmNR0oRdatBdk9E2wvpg8G+Thj6eollSjHFkpwrwYLH+lkJy2Ad/AWJtz21WupeRS/NJPHTdHg5RVzUb/M05pjw== X-Microsoft-Antispam-Message-Info: L/EqE26eSVTN68DyKQDc7ZlqBvWxvsrKseZDCfRPKsFYWA8+lgMQqSB8nhbNWaZkkmO9GLX7NKQbSP6r2+eFaEr1Qc6nPtPY/69eTjm9uSQuMwi3OtuTn/CTdoDXpD73awXPctfuGZWeFaGdDLKYZiRhO0eBY/sz413uMTgxPAxq2hYx6zJMa5038LLcl2z0oHmuP9sITKefzKXZdJeK19+Lrns2FknktMnxQ+6cQEFHs0C2A51dFaUEMw8UvS5cwEXfPTUts8wSELrddOafmWGRwqyFWWAaLE/Ux65tMQqqcghGgfjMUHkg+NgmwChO8yqNPorm6Ktwu6ecYVsKEE6n8sQWLAAsVK9vdHWBQdjtSTqaLRG4M7EP2GBg07sDVxdJtpJ2uDC51Exve/jXi8eCUo8NvujpXpxqInMGGjg= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2019 18:54:46.5279 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3feee374-045b-4db4-a2a8-08d691e4b967 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB2908 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: Misc bug fixes for the driver
|
expand
|
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 2d9336a87e42..ba5da365ee4a 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -471,9 +471,11 @@ qla2x00_async_adisc(struct scsi_qla_host *vha, fc_port_t *fcport, { srb_t *sp; struct srb_iocb *lio; - int rval; + int rval = QLA_FUNCTION_FAILED; + + if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT)) + return rval; - rval = QLA_FUNCTION_FAILED; fcport->flags |= FCF_ASYNC_SENT; sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL); if (!sp)