Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2925519rwb; Mon, 15 Aug 2022 14:10:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR73Vbo3SnbVRLNf+QmTwlujeHSsZXCbJoWi98Vr3T4e8HCSqiyqqpfyt/btDWiyyEAAgD9d X-Received: by 2002:a63:1c23:0:b0:421:a0a1:696d with SMTP id c35-20020a631c23000000b00421a0a1696dmr15722815pgc.275.1660597831838; Mon, 15 Aug 2022 14:10:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597831; cv=none; d=google.com; s=arc-20160816; b=yXPtNU33oc98r37i4+uxXvCriG39FKq8iA172gZsu9yzMF44K+SGAk5m9OZSubZlHe O0BePCzffg1Ip/sPN2F+ZbfI97Ytn8pgxTr/M5mrRZe61Cln11Vm+1hfsBY62nXGbJmU rVWvr49pZrDISfAFQ4O8rq4/WdNoQaPXt6U50y/uA+NrMpTpP8COeM4YQFDdRyjBT118 kbIfzvjzqxdeZ4KCE9h7PMCQWK74uDPLrxeYLouYAjerzMldqFxCKAQqF+AQ4mHvDD31 rfGzcKSQAAqSeqWsbBqvPWxT4aIsxi1fhLILNn9BTTIBbd7xD20K8TRXgqVxeaC9y/4q mmVg== 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=kuQlzNBDrmrN4GcwIMP70hdrYiYUvwuth810CWMsXEHS3TgukC/kbE6GktnUC1ojHY ZqMrjhTdpKT+dTfWM84vZ7thZPaPhP/X3pLWMuStXvE0jGZ8mFN3Llh+3Csgc/AydZHk 6OulePI3uA6EL900py1iQ5uT88Yt3ozvZnndenR8Fmo48Kt+7XwL75Q6IvVONQBGOIrI wrEE3FjEHwqcyLPTm+NeQmo/F32BJWwwQUgjS5p1/JVyY0SF5IQ03IxB4ciJQEh8I3pP YPQpvRLPKQRIhX0HFtvzjkQzZVj7ORAHJZkQPktYYvPHEJqssF6HBLMBGS8uhqtk9OwV DyWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vc4QjLGc; 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 v10-20020a63b64a000000b0041e2cc84562si10574373pgt.577.2022.08.15.14.10.20; Mon, 15 Aug 2022 14:10:31 -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=vc4QjLGc; 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 S244132AbiHOUIs (ORCPT + 99 others); Mon, 15 Aug 2022 16:08:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244054AbiHOUHx (ORCPT ); Mon, 15 Aug 2022 16:07:53 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A1AC402CD; Mon, 15 Aug 2022 11:55:29 -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 55656B8105C; Mon, 15 Aug 2022 18:55:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C856CC433C1; Mon, 15 Aug 2022 18:55:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660589725; bh=rgVZ0QPFNWmFUdSoYFtBcF4v79wbdPH3MlDMPbj3SaU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vc4QjLGc3MIrF9ZPS8FTtoVmaakAOESj0DbC3Gv/0EmOFNIT5J4XXnrbzAPy5He4l 2gqKH85Pt9AhRV5WYM8H6V4DPpAwsbDUHnEIQEjfHo8KvlUuJ6YBC/e3pn2PBqOKqZ MPA5OZb//WPhrIbfsNwELNSvyRZ1ZYRTXsou8TrU= 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.18 0004/1095] scsi: Revert "scsi: qla2xxx: Fix disk failure to rediscover" Date: Mon, 15 Aug 2022 19:50:03 +0200 Message-Id: <20220815180429.464204939@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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));