Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp720576pxb; Tue, 5 Apr 2022 20:15:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiGVlbqHcV98XIrXmO34wxOBQCygO2SwKwaziy3cj3ZSbl4XyWcTRA3XZnGdNb60g5rttz X-Received: by 2002:a17:90b:3d0b:b0:1c9:b387:4372 with SMTP id pt11-20020a17090b3d0b00b001c9b3874372mr7759780pjb.74.1649214923971; Tue, 05 Apr 2022 20:15:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649214923; cv=none; d=google.com; s=arc-20160816; b=paKXHmOdiDNOCoCS1dc2MSUxfTumx9W6BWkiKMM8BSs8r3NdYvktCTYTG+Sh+iHJJJ t+IRcz1M6SN07j9lO3okYftQB83L1wfy2jBvBGivrvoZPKdwxIEOQzV0O48h0Fb2Bmkc 0uPVPjw5MHEOo7tLhgUre4/EfR5mevF04RLb4sZgF1C6Rp7UFAEcvO9tOPzRlbgII1pX +Jivvp0GmSpkcudFNPn33seiZS5+k77lbIODuWJr3aBVK1a/plFQkFc+MokH1HJIe+jv EvbJ0zcvWj7RIMcF8lgenKTV3nf8RMwwiTZdjFlA/ZzQoUUW0YDcaDRSpyU3PkD3lyJj Hp8A== 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=tOr3heRhKMyvUAQBXijOEQ2gEUuDTuSlgQxxdEn8ysA=; b=QlVvYK7blxbx69fWst+wMZZVhRQ1I1HFIlefvpqhLHdzuXrtrEyDfM71zOqIruDjmS iWrafUEw1Jna1PI3dDLMDGeGuQX1PkqgAEzb/paCTPZ7/69kZ5L8joYS5IGlY7bvmpBL oWsYTTZRUNPnsM9i/wcZDhNhkhuUK4htwRSDMigyBsQTBFdL4eFf0F6P2GOGCMUkuhcU y/H4EV32c8YSe0citl25LA4NMf/d5jq3m+ebjSttvzD7bPQkgRfYeMOgJ8nwHf26cZsy aWFs2UGgNSl+7Q9WyRQVU88TekUAQ+BCgVdMSX5xopo+8BYxPUxtvyaueQ9Q+wmXsETh eqRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HpaJI5Sc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k14-20020a056a00134e00b004fa3a8e00a0si15809071pfu.343.2022.04.05.20.15.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 20:15:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HpaJI5Sc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 10A6E219956; Tue, 5 Apr 2022 19:53:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348121AbiDEKpu (ORCPT + 99 others); Tue, 5 Apr 2022 06:45:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240609AbiDEIcM (ORCPT ); Tue, 5 Apr 2022 04:32:12 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11DC775E48; Tue, 5 Apr 2022 01:24:40 -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 6A8E4B81B92; Tue, 5 Apr 2022 08:24:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCF2FC385A0; Tue, 5 Apr 2022 08:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649147074; bh=cMqtRYjZEQdWC8J/EteWdfFdurSZ5k0jH4EvAFujZW0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HpaJI5ScOCcPDv2fpUznB3va1/MMDMUq9v5CaOuGFKrd2+oe21vw3huCCx3p+O2rp QlQauPnwznaEO/XLKuoDCLuAq68BDa4tbvRjlmkuy8lTxb4ent81fXEn43s8gI52i1 ich5QAMaXM+jdnH64s/ey+oH+a4RE5xV6b5OIaWo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Himanshu Madhani , Quinn Tran , Nilesh Javali , "Martin K. Petersen" Subject: [PATCH 5.17 0991/1126] scsi: qla2xxx: Fix stuck session of PRLI reject Date: Tue, 5 Apr 2022 09:28:58 +0200 Message-Id: <20220405070436.582506710@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: Quinn Tran commit f3502e2e98a92981601edc3dadf4b0f43c79836b upstream. Remove stale recovery code that prevents normal path recovery. Link: https://lore.kernel.org/r/20220310092604.22950-11-njavali@marvell.com Fixes: 1cbc0efcd9be ("scsi: qla2xxx: Fix retry for PRLI RJT with reason of BUSY") Cc: stable@vger.kernel.org Reviewed-by: Himanshu Madhani Signed-off-by: Quinn Tran Signed-off-by: Nilesh Javali Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_init.c | 7 ------- 1 file changed, 7 deletions(-) --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -2104,13 +2104,6 @@ qla24xx_handle_prli_done_event(struct sc qla24xx_post_gpdb_work(vha, ea->fcport, 0); break; default: - if ((ea->iop[0] == LSC_SCODE_ELS_REJECT) && - (ea->iop[1] == 0x50000)) { /* reson 5=busy expl:0x0 */ - set_bit(RELOGIN_NEEDED, &vha->dpc_flags); - ea->fcport->fw_login_state = DSC_LS_PLOGI_COMP; - break; - } - sp = ea->sp; ql_dbg(ql_dbg_disc, vha, 0x2118, "%s %d %8phC priority %s, fc4type %x prev try %s\n",