Message ID | 20200921162035.212600621@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <SRS0=lyed=C6=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DECDBC43465 for <stable@archiver.kernel.org>; Mon, 21 Sep 2020 16:41:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 92FB5239D3 for <stable@archiver.kernel.org>; Mon, 21 Sep 2020 16:41:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706494; bh=jbKqVgYyt3WvvappifNaKnDCFj63tYxxqnvdh/gRnzM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=EA4DnSmrsto/1TE9393lEdVyQJHQH4ztmnKthqehn0BzTWrqr5YQa2VQTlj9mp5+t aMdxzSfqOx5DSiZ64/bJ0ml47UXT6YzWfIC9SBDLRv73iXu+PDFx+24Gf7p1eVBBEK 41rVNcf42kL30PMimVs6Qs0w0PXS2t0mEx3wHILY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729143AbgIUQlT (ORCPT <rfc822;stable@archiver.kernel.org>); Mon, 21 Sep 2020 12:41:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:44668 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728633AbgIUQlQ (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 21 Sep 2020 12:41:16 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AD562238E6; Mon, 21 Sep 2020 16:41:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706476; bh=jbKqVgYyt3WvvappifNaKnDCFj63tYxxqnvdh/gRnzM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uXTy5d+OjWoabGEXMlT2ZOOFNZWfnKu0CE41+5/2VaZtfxNWXk2w5VgJjnL6hMZcs uZKpRP8kXCV7TWy6eH5d5mkhVTMq/5zpMKA3UdrMELm6QDB9idSV6mK5S+sT1gjn+0 k1iAsNAny1pxeAbo/9MDKydAAk4Froarfho615Ak= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Dick Kennedy <dick.kennedy@broadcom.com>, James Smart <james.smart@broadcom.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.19 12/49] scsi: lpfc: Fix FLOGI/PLOGI receive race condition in pt2pt discovery Date: Mon, 21 Sep 2020 18:27:56 +0200 Message-Id: <20200921162035.212600621@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162034.660953761@linuxfoundation.org> References: <20200921162034.660953761@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 9032793c405eb..6a4b496081e4a 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c @@ -4112,7 +4112,9 @@ lpfc_cmpl_els_rsp(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb, out: if (ndlp && NLP_CHK_NODE_ACT(ndlp) && shost) { spin_lock_irq(shost->host_lock); - ndlp->nlp_flag &= ~(NLP_ACC_REGLOGIN | NLP_RM_DFLT_RPI); + if (mbox) + ndlp->nlp_flag &= ~NLP_ACC_REGLOGIN; + ndlp->nlp_flag &= ~NLP_RM_DFLT_RPI; spin_unlock_irq(shost->host_lock); /* If the node is not being used by another discovery thread,