Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3020875rwb; Mon, 15 Aug 2022 16:17:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Fn9SEEsLgA3c+DIOg0rXBqveFxkh5BBELi/DUG8cr6JXQ1AMnHhAYTou6qloi38HhxWoN X-Received: by 2002:a17:90b:2241:b0:1f5:4078:3ffd with SMTP id hk1-20020a17090b224100b001f540783ffdmr20988976pjb.167.1660605479277; Mon, 15 Aug 2022 16:17:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605479; cv=none; d=google.com; s=arc-20160816; b=inZqyUmByGhvh4Cw30S6lX7ziuH9cdynNsdscU79uVfvTgk5VTrq1hhfqVb8C1q2HX YHwxu6A1chQGoLzIBJruf319iOkIo39zzy3fEPFuyq0mwmU6nQb1Fsn3AxVfFL12EAP3 ggFEU+c2bTnSSBPsrvUEDXnoFw5Fd0cTYF49TeKjXzkuSZNgSaVmDUEytx6krb0Y8ffE IMWT/My/I+ltlk5ZOgCndkX03zC13E1KywUpdP4zDsmB06ZZ4+lgnOzKQLSzhciR2Aoo KBDW03o0c4JflKpAXoUZSaGIFBLpq9JLcP1ULAPQILZWxo2KbuUmf5tkDCptQLmB/pBb +R9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/zT23e51lJjNPSs2KdLF4h8a1brQ5IOESvpQWS3wbyM=; b=hw9Lc9ZoqzsN6M9LsVvD3yqagw0mCOf2iyMTGX3XPSkqlhz6NhSch8pqWXO4xOCwnR wPF/0Vet8jeXrO2O8KQZc9bKV5hoOxHR0GMZXRwjXQt4KIWXvUR3V+S8reRHti2uD2Uu 5UrnwK4EbH+cW0pi+zhesBSnQ1HrMSZYrR1LktUi9yqAfolTWzDiGLJJ1MzwYWBQdHXy cTwkhAKmxT96e0/5COAYHAJqEFjcYlJMweoaX8phsO1DvawYxSUxzgD2mmi88KAvfyxd vC7qbDtZ+y+FTHgilmIDLgW2ietftRb/FmF2tw/gynF7nxKO5rmBVfSFsYm8QiOEJ4kU jueg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="kD/hXTBz"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i2-20020a17090332c200b001709e3c7524si12345271plr.167.2022.08.15.16.17.48; Mon, 15 Aug 2022 16:17:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="kD/hXTBz"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346299AbiHOVp1 (ORCPT + 99 others); Mon, 15 Aug 2022 17:45:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349586AbiHOVl3 (ORCPT ); Mon, 15 Aug 2022 17:41:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 011AF5C34E; Mon, 15 Aug 2022 12:29:17 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 55E66B81122; Mon, 15 Aug 2022 19:29:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D570C433D6; Mon, 15 Aug 2022 19:29:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591756; bh=rgVZ0QPFNWmFUdSoYFtBcF4v79wbdPH3MlDMPbj3SaU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kD/hXTBzwMChQ79E7S9Zhr/2wM6WDG14qW01oZ/GEl5z/b+AEFcIzyvnWGnj4DmW+ 6qN/yPk68jDisl4UKZdpl1XNYFR+Ud4HNEwoJRbljYwg2R1vMUmb80XpwjsnR2+5Kb GhMHyM3ZH2gWwH1tWQgwEIR62CVY9JnQtvzRMTWw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Himanshu Madhani , Nilesh Javali , "Martin K. Petersen" Subject: [PATCH 5.19 0004/1157] scsi: Revert "scsi: qla2xxx: Fix disk failure to rediscover" Date: Mon, 15 Aug 2022 19:49:20 +0200 Message-Id: <20220815180439.646297254@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nilesh Javali commit 5bc7b01c513a4a9b4cfe306e8d1720cfcfd3b8a3 upstream. This fixes the regression of NVMe discovery failure during driver load time. This reverts commit 6a45c8e137d4e2c72eecf1ac7cf64f2fdfcead99. Link: https://lore.kernel.org/r/20220713052045.10683-2-njavali@marvell.com Cc: stable@vger.kernel.org Reviewed-by: Himanshu Madhani Signed-off-by: Nilesh Javali Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_init.c | 5 ++--- drivers/scsi/qla2xxx/qla_nvme.c | 5 ----- 2 files changed, 2 insertions(+), 8 deletions(-) --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -5767,8 +5767,6 @@ qla2x00_reg_remote_port(scsi_qla_host_t if (atomic_read(&fcport->state) == FCS_ONLINE) return; - qla2x00_set_fcport_state(fcport, FCS_ONLINE); - rport_ids.node_name = wwn_to_u64(fcport->node_name); rport_ids.port_name = wwn_to_u64(fcport->port_name); rport_ids.port_id = fcport->d_id.b.domain << 16 | @@ -5869,7 +5867,6 @@ qla2x00_update_fcport(scsi_qla_host_t *v qla2x00_reg_remote_port(vha, fcport); break; case MODE_TARGET: - qla2x00_set_fcport_state(fcport, FCS_ONLINE); if (!vha->vha_tgt.qla_tgt->tgt_stop && !vha->vha_tgt.qla_tgt->tgt_stopped) qlt_fc_port_added(vha, fcport); @@ -5887,6 +5884,8 @@ qla2x00_update_fcport(scsi_qla_host_t *v if (NVME_TARGET(vha->hw, fcport)) qla_nvme_register_remote(vha, fcport); + qla2x00_set_fcport_state(fcport, FCS_ONLINE); + if (IS_IIDMA_CAPABLE(vha->hw) && vha->hw->flags.gpsc_supported) { if (fcport->id_changed) { fcport->id_changed = 0; --- a/drivers/scsi/qla2xxx/qla_nvme.c +++ b/drivers/scsi/qla2xxx/qla_nvme.c @@ -37,11 +37,6 @@ int qla_nvme_register_remote(struct scsi (fcport->nvme_flag & NVME_FLAG_REGISTERED)) return 0; - if (atomic_read(&fcport->state) == FCS_ONLINE) - return 0; - - qla2x00_set_fcport_state(fcport, FCS_ONLINE); - fcport->nvme_flag &= ~NVME_FLAG_RESETTING; memset(&req, 0, sizeof(struct nvme_fc_port_info));