Message ID | 20190305105901.13185-2-skashyap@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 9916017E4 for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 5 Mar 2019 10:59:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B8A5297DE for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 5 Mar 2019 10:59:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CFF42AE4C; Tue, 5 Mar 2019 10:59:13 +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 B2EF7297DE for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 5 Mar 2019 10:59:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727322AbfCEK7M (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Tue, 5 Mar 2019 05:59:12 -0500 Received: from mail-eopbgr800054.outbound.protection.outlook.com ([40.107.80.54]:51484 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726250AbfCEK7L (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Tue, 5 Mar 2019 05:59:11 -0500 Received: from BYAPR07CA0005.namprd07.prod.outlook.com (2603:10b6:a02:bc::18) by BYAPR07MB4760.namprd07.prod.outlook.com (2603:10b6:a02:f0::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.18; Tue, 5 Mar 2019 10:59:07 +0000 Received: from BY2NAM05FT059.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::202) by BYAPR07CA0005.outlook.office365.com (2603:10b6:a02:bc::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1686.16 via Frontend Transport; Tue, 5 Mar 2019 10:59:07 +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 BY2NAM05FT059.mail.protection.outlook.com (10.152.100.196) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1686.5 via Frontend Transport; Tue, 5 Mar 2019 10:59:07 +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; Tue, 5 Mar 2019 02:59:04 -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 x25Ax4CO013224; Tue, 5 Mar 2019 02:59:04 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x25Ax43k013223; Tue, 5 Mar 2019 02:59:04 -0800 From: Saurav Kashyap <skashyap@marvell.com> To: <martin.petersen@oracle.com> CC: <QLogic-Storage-Upstream@cavium.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH 01/26] qedf: Do not retry ELS request if qedf_alloc_cmd fails. Date: Tue, 5 Mar 2019 02:58:36 -0800 Message-ID: <20190305105901.13185-2-skashyap@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190305105901.13185-1-skashyap@marvell.com> References: <20190305105901.13185-1-skashyap@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Matching-Connectors: 131962571477609426;(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)(136003)(346002)(376002)(39860400002)(396003)(2980300002)(1109001)(1110001)(339900001)(51234002)(199004)(189003)(53936002)(5660300002)(36756003)(316002)(36906005)(2906002)(50226002)(54906003)(42186006)(1076003)(16586007)(51416003)(48376002)(68736007)(26005)(76176011)(8936002)(50466002)(26826003)(97736004)(498600001)(14444005)(305945005)(6862004)(356004)(6666004)(106466001)(86362001)(105606002)(2351001)(87636003)(45080400002)(4326008)(85426001)(336012)(11346002)(80596001)(69596002)(486006)(2616005)(476003)(8676002)(81166006)(47776003)(126002)(81156014)(446003);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR07MB4760;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b877c2cf-f5b7-4a4d-9e75-08d6a1599708 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600127)(711020)(4605104)(2017052603328);SRVR:BYAPR07MB4760; X-MS-TrafficTypeDiagnostic: BYAPR07MB4760: X-Microsoft-Antispam-PRVS: <BYAPR07MB4760F6134B22F3F1119A6BA1D2720@BYAPR07MB4760.namprd07.prod.outlook.com> X-Forefront-PRVS: 0967749BC1 X-Microsoft-Exchange-Diagnost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4z+iANjGfZ54jXOAZ1Qf5jOlUAtzuSZTeU7w489+8lNccc7wD5chhO2K5kwhdq0YcBa8ZZOCp8RO2EuZ0bRFdziwLZwYqUdO/LuPuDTQrp4Kc9aysi5n+FbNiwnNXOlYwJgfZdv4KZ6mkV1+Wl3khWac7NlLjoCaUuXJlpYrLzXBerh6xNRAoXvAC4PK1bl5u0Xe5eoWH0EI74pKjsD95WsWcG24qhkqc3FO7im61jYiOtDZcWB7Ch+hAfL64PWWUUqtkarOJpP2NE= X-Microsoft-Antispam-Message-Info: egxduFI8dvButhlz7kmsLXGs9386/6Ur9Wqh7KhrTJoPgjX6nZtmYY2tUUtv7lriXmg8pYIstWT4Shjf/hIHQeUF7vdpYJo0qaf95ukM8lk341e7BGpovsE1gWt5C0ynbN9WcBTHTrC5e4oTI/IB08fhW1SoJKWjI0Ys+Bv8HREtzMe0YFLcvsFR8MeTCa8e64xijpHpYoxPTxBCKNahKLUCXckEw1mW660rWnQ65t4A5GuS2975cU7JGQROqKVM6QuIX26f5ltSObZALAn5n4z8uL+DAASvfRRkTeM4/7n+5f73KdKF3zO+UTO1r6WNcsbGLBY/nFNClGEv499jKtp6H8aOs7+8oDfDoje83tYSEgc66V+Y63eNB2dqg68hgsehPvPo7OQ2Q1xksJzkaKnUjqOoF/xw3/aTFvme2Ds= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2019 10:59:07.5147 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b877c2cf-f5b7-4a4d-9e75-08d6a1599708 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: BYAPR07MB4760 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 |
qedf: Misc fixes for the driver.
|
expand
|
diff --git a/drivers/scsi/qedf/qedf_els.c b/drivers/scsi/qedf/qedf_els.c index 04f0c4d..5178cd0 100644 --- a/drivers/scsi/qedf/qedf_els.c +++ b/drivers/scsi/qedf/qedf_els.c @@ -23,8 +23,6 @@ static int qedf_initiate_els(struct qedf_rport *fcport, unsigned int op, int rc = 0; uint32_t did, sid; uint16_t xid; - uint32_t start_time = jiffies / HZ; - uint32_t current_time; struct fcoe_wqe *sqe; unsigned long flags; u16 sqe_idx; @@ -59,18 +57,12 @@ static int qedf_initiate_els(struct qedf_rport *fcport, unsigned int op, goto els_err; } -retry_els: els_req = qedf_alloc_cmd(fcport, QEDF_ELS); if (!els_req) { - current_time = jiffies / HZ; - if ((current_time - start_time) > 10) { - QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_ELS, - "els: Failed els 0x%x\n", op); - rc = -ENOMEM; - goto els_err; - } - mdelay(20 * USEC_PER_MSEC); - goto retry_els; + QEDF_INFO(&qedf->dbg_ctx, QEDF_LOG_ELS, + "Failed to alloc ELS request 0x%x\n", op); + rc = -ENOMEM; + goto els_err; } QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_ELS, "initiate_els els_req = "