Message ID | 20190305105901.13185-21-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 8CF591390 for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 5 Mar 2019 11:00:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BE802B5E4 for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 5 Mar 2019 11:00:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79A3D2B8AE; Tue, 5 Mar 2019 11:00:12 +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 4B4B72B5E4 for <patchwork-linux-scsi@patchwork.kernel.org>; Tue, 5 Mar 2019 11:00:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727450AbfCELAL (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Tue, 5 Mar 2019 06:00:11 -0500 Received: from mail-eopbgr780043.outbound.protection.outlook.com ([40.107.78.43]:13540 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727401AbfCELAK (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Tue, 5 Mar 2019 06:00:10 -0500 Received: from DM6PR07CA0071.namprd07.prod.outlook.com (2603:10b6:5:74::48) by BN7PR07MB4372.namprd07.prod.outlook.com (2603:10b6:406:b5::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.15; Tue, 5 Mar 2019 11:00:08 +0000 Received: from BY2NAM05FT020.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::208) by DM6PR07CA0071.outlook.office365.com (2603:10b6:5:74::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1665.16 via Frontend Transport; Tue, 5 Mar 2019 11:00: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 BY2NAM05FT020.mail.protection.outlook.com (10.152.100.157) 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 11:00:06 +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 03:00:02 -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 x25B02xx013406; Tue, 5 Mar 2019 03:00:02 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x25B02vV013322; Tue, 5 Mar 2019 03:00:02 -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 20/26] qedf: Don't send ABTS for under run scenario. Date: Tue, 5 Mar 2019 02:58:55 -0800 Message-ID: <20190305105901.13185-21-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: 131962572072724854;(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)(396003)(376002)(346002)(39860400002)(136003)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(16586007)(5660300002)(86362001)(80596001)(126002)(48376002)(47776003)(305945005)(76176011)(6666004)(51416003)(356004)(36756003)(4326008)(42186006)(54906003)(6862004)(36906005)(2906002)(53936002)(69596002)(336012)(97736004)(316002)(26005)(8676002)(81166006)(2616005)(2351001)(476003)(105606002)(446003)(50226002)(8936002)(11346002)(1076003)(50466002)(68736007)(486006)(85426001)(106466001)(87636003)(498600001)(26826003)(81156014);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR07MB4372;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: 6864f7cd-754a-4c3f-c3ea-08d6a159ba73 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600127)(711020)(4605104)(2017052603328);SRVR:BN7PR07MB4372; X-MS-TrafficTypeDiagnostic: BN7PR07MB4372: X-Microsoft-Antispam-PRVS: <BN7PR07MB437221DA17BA0CD273E83593D2720@BN7PR07MB4372.namprd07.prod.outlook.com> X-Forefront-PRVS: 0967749BC1 X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4372;23:WMalkXqTKbhB+nye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83QdDDeWrekLrRop8LdTUlxPDFsgCidfHni2tNLpolWD4Q6g2PNB2j8I3ynJ13VMcdIN/e67WtIx1AILwv9Usw1pRuvX90IewjteG1HEpZ891j31kVH0shj/cQaRl39fEfFSidmm5h4xwv6D2Y= X-Microsoft-Antispam-Message-Info: wXt3eGnMtSxzqlBuNEimCXaRIiBzA0RnmJEdiJ9iBpzofqFZpP0BD5IPw33RSkMC+gLjgbZQ/I0zgZsoNRnHTCwN7aC40tQ5Xjr6wh8BFlH1s9QaVc3zwD5kbOqtw92QjTJ2ytTtd22gZbAEKs7kCldIWJvFyuKH3WCOH1TYmAs7ocybprX/+FXGu+4+js1rTqe4IUnZZZXC4EKFb2PH3dcWH+0BkKUtOO+PliGgeBzCiJfsc05RjumAZ/Apo2JbpYMGv0VPNrqmZ3Ocdb3K5yPMOkyw+fJwNleVp1aT7bjDAFUdhvmecfHfqStVjw+m6Po+TKd3G7nWMo5W8B3ziMjB6GWDhnFfInG776TsY3Y+bfLTsAJN2pVeL6d9znEH32SixKzEeLkXhHL5d1HYGzfKwyH5qlw3hPZ+qpCTVQo= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2019 11:00:06.8941 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6864f7cd-754a-4c3f-c3ea-08d6a159ba73 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: BN7PR07MB4372 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_io.c b/drivers/scsi/qedf/qedf_io.c index 30932a8..5e7745e 100644 --- a/drivers/scsi/qedf/qedf_io.c +++ b/drivers/scsi/qedf/qedf_io.c @@ -1100,7 +1100,7 @@ static void qedf_unmap_sg_list(struct qedf_ctx *qedf, struct qedf_ioreq *io_req) void qedf_scsi_completion(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, struct qedf_ioreq *io_req) { - u16 xid, rval; + u16 xid; struct e4_fcoe_task_context *task_ctx; struct scsi_cmnd *sc_cmd; struct fcoe_cqe_rsp_info *fcp_rsp; @@ -1200,14 +1200,6 @@ void qedf_scsi_completion(struct qedf_ctx *qedf, struct fcoe_cqe *cqe, else sc_cmd->result = (DID_OK << 16) | io_req->cdb_status; - /* Abort the command since we did not get all the data */ - init_completion(&io_req->abts_done); - rval = qedf_initiate_abts(io_req, true); - if (rval) { - QEDF_ERR(&(qedf->dbg_ctx), "Failed to queue ABTS.\n"); - sc_cmd->result = (DID_ERROR << 16) | io_req->cdb_status; - } - /* * Set resid to the whole buffer length so we won't try to resue * any previously data.
- Command is already completed with underrun so no need to send ABTS. Signed-off-by: Saurav Kashyap <skashyap@marvell.com> --- drivers/scsi/qedf/qedf_io.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)