From patchwork Thu Mar 28 17:09:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Himanshu Madhani X-Patchwork-Id: 10875445 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 BB6F3186E for ; Thu, 28 Mar 2019 17:11:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97C2428CC7 for ; Thu, 28 Mar 2019 17:11:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 959C128EBB; Thu, 28 Mar 2019 17:11:32 +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 A253228CC7 for ; Thu, 28 Mar 2019 17:11:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727274AbfC1RLa (ORCPT ); Thu, 28 Mar 2019 13:11:30 -0400 Received: from mail-eopbgr760083.outbound.protection.outlook.com ([40.107.76.83]:52803 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725948AbfC1RL3 (ORCPT ); Thu, 28 Mar 2019 13:11:29 -0400 Received: from DM6PR07CA0047.namprd07.prod.outlook.com (2603:10b6:5:74::24) by MW2PR07MB4028.namprd07.prod.outlook.com (2603:10b6:907:6::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.17; Thu, 28 Mar 2019 17:11:27 +0000 Received: from BY2NAM05FT037.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e52::204) by DM6PR07CA0047.outlook.office365.com (2603:10b6:5:74::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1750.15 via Frontend Transport; Thu, 28 Mar 2019 17:11:27 +0000 Authentication-Results: spf=temperror (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=temperror action=none header.from=marvell.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of marvell.com: DNS Timeout) 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:25 +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:23 -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 x2SHAM5k026468; Thu, 28 Mar 2019 10:10:22 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x2SHAMOC026467; Thu, 28 Mar 2019 10:10:22 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 02/15] qla2xxx: Set the qpair in SRB to NULL when SRB is released Date: Thu, 28 Mar 2019 10:09:59 -0700 Message-ID: <20190328171012.26425-3-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: 131982666857724914;(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)(346002)(39860400002)(136003)(376002)(2980300002)(189003)(199004)(1076003)(36906005)(5660300002)(316002)(42186006)(97736004)(76176011)(51416003)(4744005)(105606002)(50466002)(106466001)(53936002)(36756003)(305945005)(4326008)(110136005)(54906003)(8676002)(81166006)(81156014)(48376002)(47776003)(69596002)(68736007)(63350400001)(6666004)(356004)(87636003)(63370400001)(8936002)(498600001)(26826003)(2906002)(16586007)(336012)(486006)(126002)(26005)(11346002)(476003)(2616005)(80596001)(50226002)(86362001)(446003);DIR:OUT;SFP:1101;SCL:1;SRVR:MW2PR07MB4028;H:CAEXCH02.caveonetworks.com;FPR:;SPF:TempError;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d8bbd12b-7831-4bd6-9cf6-08d6b3a068fd X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600127)(711020)(4605104)(2017052603328);SRVR:MW2PR07MB4028; X-MS-TrafficTypeDiagnostic: MW2PR07MB4028: X-Microsoft-Antispam-PRVS: X-Forefront-PRVS: 0990C54589 X-Microsoft-Antispam-Message-Info: VD9l0XCj4T6DU40EmTc9r8/DTuCyxygI9YVgEmAkJgf0hf6wiDuhraUDZp5+FMsVle5AU4/84apyDx86mxKQZoq4ZvR1hLbTIE8telBUgd55dmfJIHGuieD1atxLhnIV3YLzRQLDlC2IIWJCeaOZ117D4zA1pSX3k0uVacmOcJ71KW6AarhDdwZlK/8qHzqzB4l+tYt+xqRK45syvf2yoLmeJ/61/U8+rea7VJI4afJsUGnvYiZI25NnX30eU+cGJ9ASzrFOhcZi2E7+Vbd3TGDdch8+qdqX2jHIE11B3XdVBpnT0nccX1fq3eCmTIY5o9prjmU0/k/dq1txtQBo7QLG7O0j35iwd6FI9rp/PJVA7W2E1VnHGjZXEezoFOqpb93hv89xzHSWyPulhvT5WfM+E+xXY2H9RcI9CUzL16E= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2019 17:11:25.4532 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d8bbd12b-7831-4bd6-9cf6-08d6b3a068fd 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: MW2PR07MB4028 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 Set QPair to NULL Signed-off-by: Giridhar Malavali Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_inline.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/qla2xxx/qla_inline.h b/drivers/scsi/qla2xxx/qla_inline.h index 512c3c37b447..07c3f45d4bd7 100644 --- a/drivers/scsi/qla2xxx/qla_inline.h +++ b/drivers/scsi/qla2xxx/qla_inline.h @@ -240,6 +240,7 @@ qla2xxx_get_qpair_sp(scsi_qla_host_t *vha, struct qla_qpair *qpair, static inline void qla2xxx_rel_qpair_sp(struct qla_qpair *qpair, srb_t *sp) { + sp->qpair = NULL; mempool_free(sp, qpair->srb_mempool); QLA_QPAIR_MARK_NOT_BUSY(qpair); }