From patchwork Thu Mar 28 17:10:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10875451 Return-Path: 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 1DA2413B5 for ; Thu, 28 Mar 2019 17:11:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF83428B49 for ; Thu, 28 Mar 2019 17:11:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3D8328EBA; Thu, 28 Mar 2019 17:11:34 +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 CD12C28AE7 for ; Thu, 28 Mar 2019 17:11:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727578AbfC1RLd (ORCPT ); Thu, 28 Mar 2019 13:11:33 -0400 Received: from mail-eopbgr690051.outbound.protection.outlook.com ([40.107.69.51]:28194 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726692AbfC1RLd (ORCPT ); Thu, 28 Mar 2019 13:11:33 -0400 Received: from DM6PR07CA0071.namprd07.prod.outlook.com (2603:10b6:5:74::48) by BL0PR07MB4020.namprd07.prod.outlook.com (2603:10b6:207:4b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.18; Thu, 28 Mar 2019 17:11:31 +0000 Received: from BY2NAM05FT037.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::206) 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.1750.16 via Frontend Transport; Thu, 28 Mar 2019 17:11:30 +0000 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 BY2NAM05FT037.mail.protection.outlook.com (10.152.100.174) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1771.6 via Frontend Transport; Thu, 28 Mar 2019 17:11:30 +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; Thu, 28 Mar 2019 10:10:26 -0700 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 x2SHAQ0L026472; Thu, 28 Mar 2019 10:10:26 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x2SHAQru026471; Thu, 28 Mar 2019 10:10:26 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 03/15] qla2xxx: Reset the FCF_ASYNC_{SENT|ACTIVE} flags Date: Thu, 28 Mar 2019 10:10:00 -0700 Message-ID: <20190328171012.26425-4-hmadhani@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190328171012.26425-1-hmadhani@marvell.com> References: <20190328171012.26425-1-hmadhani@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131982666904543268;(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)(376002)(39860400002)(136003)(346002)(396003)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(81156014)(6666004)(126002)(476003)(336012)(6346003)(446003)(11346002)(81166006)(54906003)(16586007)(42186006)(356004)(305945005)(2616005)(110136005)(48376002)(80596001)(2906002)(486006)(47776003)(36906005)(26826003)(50466002)(97736004)(498600001)(8676002)(69596002)(87636003)(53936002)(36756003)(68736007)(316002)(1076003)(8936002)(26005)(5660300002)(76176011)(86362001)(50226002)(4744005)(51416003)(4326008)(106466001)(105606002)(83133001);DIR:OUT;SFP:1101;SCL:1;SRVR:BL0PR07MB4020;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c774b78e-98b4-432e-523c-08d6b3a06bd1 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600127)(711020)(4605104)(2017052603328);SRVR:BL0PR07MB4020; X-MS-TrafficTypeDiagnostic: BL0PR07MB4020: X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 0990C54589 X-Microsoft-Antispam-Message-Info: /gnpByQZyMiXzw93eCd4EZdc5OQuTNa+vJ4yZIz/1+5SmFWfiwXMKcV4SaLUbt+GtLHlNWkUVd4uUw/J1TMmZXJSQUEoZ4YJyVLqzrT5eOLeb0dgRGYyqUtrphNYZdcZd6A8cvXHLviNlg0nF2qTQsZRe4afAoN2eU6iYIcsxPtnZ5FU8sj3pXu+Ve7xz5qg7SLmlsx/TF90qvcJh5ALyR/oqwqY47hoFlJvlSHPoY+9EJ1DUg1nQ/eI90hiqxxei5yawNU9ZrDaSE8dySL9cb6sxobCDATc7NXb9ujamMhO+vi5qmj3QoSNZeUQgTpB6cVRa/14FFFknX32DpRXAepNUOtnIS2W5WB8w6ZkHWnDqB4YNrycYGucS5WUg4hTXGY8W8N7crYbqla75mD3eN9uRZrsBm696UmTlj4EvzA= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2019 17:11:30.2001 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c774b78e-98b4-432e-523c-08d6b3a06bd1 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: BL0PR07MB4020 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Giridhar Malavali This patch resets FCF_ASYNC_SENT and FCF_ASYNC_ACTIVE flag after processing GPSC command. Signed-off-by: Giridhar Malavali Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_gs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c index 7493013fc2cc..479d69c7946c 100644 --- a/drivers/scsi/qla2xxx/qla_gs.c +++ b/drivers/scsi/qla2xxx/qla_gs.c @@ -3033,6 +3033,8 @@ static void qla24xx_async_gpsc_sp_done(void *s, int res) "Async done-%s res %x, WWPN %8phC \n", sp->name, res, fcport->port_name); + fcport->flags &= ~(FCF_ASYNC_SENT | FCF_ASYNC_ACTIVE); + if (res == QLA_FUNCTION_TIMEOUT) return; @@ -4351,6 +4353,7 @@ int qla24xx_async_gnnid(scsi_qla_host_t *vha, fc_port_t *fcport) done_free_sp: sp->free(sp); + fcport->flags &= ~FCF_ASYNC_SENT; done: return rval; }