Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1864020rwb; Fri, 19 Aug 2022 10:39:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR6FBxbUh5LAPZ/pZghN++qenwMgVLMyYETO6MhRwIm5++zVplxpSj18GZ5zlO8cj5LGnjW3 X-Received: by 2002:a17:903:1106:b0:172:9801:cb96 with SMTP id n6-20020a170903110600b001729801cb96mr8347122plh.91.1660930740462; Fri, 19 Aug 2022 10:39:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930740; cv=none; d=google.com; s=arc-20160816; b=Ivu0hsYN8TEhHbsFXykA2GnVsmI6Z1ntYqHlhlVQwN/mbrcuAMaKVfgkFnWmdnKwcJ QoxMqVhg35dV8BDv016vsiKJfzhdW49k+s/bTArgod0GgfJ9tSnrvLB30+M/gXi3g3X4 0WGlOUqfcd3K8JQmPC7HXKHlGPvvGwEwqc3GcdnW1rM8HP8zpNS1eNQiG71z0hpkQjVS pfkZ8YLyNv66czrAHKkmjbfbkfO6l1YqxZ0LaFhQ81ygrX4jZkF2kRKModlEYbp47XKl nM37xmdDY3ORqKvNgldk10t8eneWR81sqzccmnVsQQx/HJx9yhS85cUCTM07whp8VaPq OUeQ== 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=YAcwVRL0k80HkX1mmhpnyQk8DTJ9N/u84N9S4Nan6wY=; b=D7Dx0SZqs8H0nvkG/sqcyvQTnSODM5iry3iWCGgfVpT0Avo9Lt4pF175bPLXBWwgU7 NpAQeGgLXORiQ2bizSHy/Rn8D4d+5P5XCpbnuPq6lWXlO9/5IbaJua9kqsv+dqJhk5F6 3hwNNAvXUb6Q4Uc0MILRiut3hVGDhjlTgbxco6skm26HQFYQB0LhucbqTkIya1sW+Z7L kYgEE7dF48JPaBDGgxDZUzLgIh1kCXWO4lFVGAknFd7+/9snI9XS56w/bvAIJP+KcnE1 U5bO8lsZaCIETYVBJ30UHM5pramV83250JFJFo+6bfivlfDgZEQWlPs2+Vf3B5+RaU9q a24g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=x1WfMPrJ; 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 y1-20020a62ce01000000b00532130277a3si4731535pfg.37.2022.08.19.10.38.49; Fri, 19 Aug 2022 10:39:00 -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=x1WfMPrJ; 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 S1350182AbiHSPqy (ORCPT + 99 others); Fri, 19 Aug 2022 11:46:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350108AbiHSPqa (ORCPT ); Fri, 19 Aug 2022 11:46:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 003512B25B; Fri, 19 Aug 2022 08:46:24 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 7C2B061562; Fri, 19 Aug 2022 15:46:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87993C433C1; Fri, 19 Aug 2022 15:46:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660923983; bh=fFVQf2+SkB4il5b6DzBFmfw/BlhjP0H5+oPNKWxwp4U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x1WfMPrJqDh/a33aHU66hUglWXLwL0pfHAvRyj5EkK2BQGaNvNYCohwNu+F0kn5rq QG3X4vhXSiwat9F8+HFcGj+eXL6ZXnOsqryK2RSV8wcL4VMdsvhcwQF9PS0nsg29Et LsQN2Wh9N95eqltGfyKrj+bVHtclzcrml7LV4nZM= 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.10 004/545] scsi: Revert "scsi: qla2xxx: Fix disk failure to rediscover" Date: Fri, 19 Aug 2022 17:36:14 +0200 Message-Id: <20220819153829.360465639@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@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 @@ -5547,8 +5547,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 | @@ -5649,7 +5647,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); @@ -5664,6 +5661,8 @@ qla2x00_update_fcport(scsi_qla_host_t *v break; } + 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 @@ -35,11 +35,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));