Message ID | 20190213185324.21652-5-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 AC37013B4 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 13 Feb 2019 18:54:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C00729569 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 13 Feb 2019 18:54:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 901D92DEAD; Wed, 13 Feb 2019 18:54:52 +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 384A029569 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 S2403831AbfBMSyv (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Wed, 13 Feb 2019 13:54:51 -0500 Received: from mail-eopbgr740048.outbound.protection.outlook.com ([40.107.74.48]:8928 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2394301AbfBMSyt (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Wed, 13 Feb 2019 13:54:49 -0500 Received: from DM6PR07CA0042.namprd07.prod.outlook.com (2603:10b6:5:74::19) by CY1PR0701MB1931.namprd07.prod.outlook.com (2a01:111:e400:58fa::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; 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:47 +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:38 -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 x1DIrbRv021703; Wed, 13 Feb 2019 10:53:37 -0800 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x1DIrbmf021702; Wed, 13 Feb 2019 10:53:37 -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 04/12] qla2xxx: Check for FW started flag before aborting Date: Wed, 13 Feb 2019 10:53:16 -0800 Message-ID: <20190213185324.21652-5-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: 131945576877678982;(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)(346002)(39860400002)(396003)(136003)(376002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(97736004)(105606002)(36756003)(106466001)(1076003)(4326008)(6666004)(356004)(86362001)(47776003)(2906002)(36906005)(51416003)(53936002)(54906003)(42186006)(110136005)(16586007)(87636003)(126002)(80596001)(336012)(48376002)(316002)(50466002)(4744005)(476003)(8676002)(50226002)(11346002)(8936002)(85426001)(26826003)(486006)(446003)(81156014)(498600001)(81166006)(69596002)(68736007)(2616005)(76176011)(305945005)(26005);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0701MB1931;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;DM3NAM05FT046;1:YFbDsFQS2lDb6z/XDCjgtt+TtltUytiGGRnQwBBaJHfNySWJxHpBeN3YbkNQ/sWaubhyzS/1NrEsq3K8DdvpRSKTLaF9O1ZwZLl0c6Ny4eZEBIIXPBKFn2OIMUQP4q/k+vgyU4qxS+fPpIGS9SP/Ww== X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c1e7ce08-2c6d-4c6c-134a-08d691e4b9f1 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600110)(711020)(4605077)(2017052603328);SRVR:CY1PR0701MB1931; X-MS-TrafficTypeDiagnostic: CY1PR0701MB1931: X-Microsoft-Antispam-PRVS: <CY1PR0701MB193149FA5774340AA3E40505D6660@CY1PR0701MB1931.namprd07.prod.outlook.com> X-Forefront-PRVS: 094700CA91 X-Microsoft-Exchange-Diagnostics: 1;CY1PR0701MB1931;23:TogxocjY7/rAqcWnHDmwauUlK1FO0AR4vvaL2ckd99XSHGTGYn8bQmIkEts6KQtF9v1O6K8Vmdf/QXfv3ArPPeGmxuWLJPUki/E4Xbn7DN8hCx+MHwJX/zsCwkOgOqonH+0fpQnSK/rD9yrrEUnRSEXx7rZB+kJyGRR0eiDeISy/upHqponp4m2HUtL6DtJrlC4SKERxztMFJbyS0KDCFmXiZhQCAV82Jic5bfH9IHsjsXE1+4rwE+vG2ZiSSs246meP2RVDc8LuBrkvBlJUQAxgZIYnn/9lHvvKzFR2HQpDC4aQLuGyVOVNzv2ZJVWQBjQ5nuSI1aaPohxrPiG5t3Nn8vdzVuQIzuT4cDMLQaGR+OSonrjFCcVPBc6ng1BB5fBtsJEejd7WSAVXwfE4X8N+WTOHkoRbeMAEeEFd7ze049doSVX5pi+7PgPSKBIwbxargdBhYRtdgbkqjWKdVPSQf4bE244kxL/KIWA6tZgP20NiLdPGRsEYhv+mhK7SK4LzlDnIFZblQhKCqXdKgHx2dNmXBHiw5t3HSDK0DpB76RmoHCvgwk/1y7cBZdPnB/gDkECQaBusvy4nxAjuyQYxudzB6syjR0qaC1tMZhtZdOriVPNVs30NB8XpAoHB83orKDdZ09a5g7VRTj7uPVkiPVL2FdK1S9HuiNRSOappeT9wlIqXbsXngbKaFzklX6vCWjGm10BMrPKeWGmxSvz5+5ESodKvrK5/rTK1rD6PySFeyYgPrgx+Ez037KhfzwPP4yOysfOSSfdXtt1893UDBFTcLcf6erdUBm6DzWZ8UPt3tVtpIvhY/VShF0Vd4bS/oXwK4Ma3A0RpIF24Hrrn7ZYogKAhM5CMRf/1bmjvMKEBnPdlucPcnSgzdATiuXExaQ/R7FvxwKd9woqZyzlA7z1GZDeMmKW8bbbUzbOMa6xerIFCtxTiQ4YBUKQu9mGL/uX/SZmZ+lF3SDsEjFHZsQgnGrOT8sLYIK4q1R6ifS7LvZGL+ng2LCzUe6J3eWOMKPgXvHO7D3CAmmyXX/4mS++qDQ1x6e8XWsFl3jdhp2S1BF6RV1WD4fzhhiGCqWQBCe95AzzYuflaKJClBjQH4K+C7Arst2xL9Gm74SRH4awji2g3OnorIvHJcrwiflGoS2dCic5jy3DkC9dQESJ2o614kU1Am+jG+IHl7Mrj4I/h+7sVX4ntP9b5FwInJ+2KBQmw8l/kuqDLC1kNTA== X-Microsoft-Antispam-Message-Info: 5LLWEXCloHg0vwCFIIxhibHMc+4z1G4Kqv33cxa73CUIt+ND+pnCHLHdktF4CJbkb1y2wvf/waNIehat1p1I26topauu6XVlUQGZ+SHJ52l96YyxNkpvmOq8kkillCxyFn7ux7LkCukx6scDN+Jzc9SVmB+u5YAU3qSRCeprwJY6u79PbsBh/9YGFzzWDtLNF/4X62UMGJ10Vh1TISaEiKYrihaZH4ap2UBrhyp3BSRJxKEGzsntWpXEoIKDsU8FLeF22WQFaHjcZ69FczFdm+GtN+gSO7oGkfXKczsLz8+sh3omMV/2nE4NLcPOUcUB1rfRZ0Bw9DSDW+jPUUoSathISJ01DvhhZUm0+i+YUM5n2dn9ZE4V5MVtVSfv+K+B5N7Mo87JBGc0rb9o46DhUXXtCWHy2NUKswHguDlmub0= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Feb 2019 18:54:47.4206 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1e7ce08-2c6d-4c6c-134a-08d691e4b9f1 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: CY1PR0701MB1931 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_nvme.c b/drivers/scsi/qla2xxx/qla_nvme.c index 232b987e79dd..41c85da3ab32 100644 --- a/drivers/scsi/qla2xxx/qla_nvme.c +++ b/drivers/scsi/qla2xxx/qla_nvme.c @@ -185,6 +185,14 @@ static void qla_nvme_abort_work(struct work_struct *work) struct qla_hw_data *ha = fcport->vha->hw; int rval; + if (fcport) + ql_dbg(ql_dbg_io, fcport->vha, 0xffff, + "%s called for sp=%p, hndl=%x on fcport=%p deleted=%d\n", + __func__, sp, sp->handle, fcport, fcport->deleted); + + if (!ha->flags.fw_started && (fcport && fcport->deleted)) + return; + rval = ha->isp_ops->abort_command(sp); ql_dbg(ql_dbg_io, fcport->vha, 0x212b,
For FC-NVMe, if the fw_started flag is not set or fcport is deleted, then do not send Abort command Signed-off-by: Himanshu Madhani <hmadhani@marvell.com> --- drivers/scsi/qla2xxx/qla_nvme.c | 8 ++++++++ 1 file changed, 8 insertions(+)