Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp653478pxb; Tue, 5 Apr 2022 17:26:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2ZttzYfOK4DVWAjiFVR3XMOkz9ZCwYbnCIXlZCtOn1o0NQRnLMLSF+yhRAzMn9CY7XJsk X-Received: by 2002:a17:907:1b08:b0:6da:b62a:762a with SMTP id mp8-20020a1709071b0800b006dab62a762amr5704613ejc.60.1649204796093; Tue, 05 Apr 2022 17:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649204796; cv=none; d=google.com; s=arc-20160816; b=o37UZC9YTiLqbTn7engjD6zLd1G0+edXtdn19Ab93LGy1/LPA5f8PMv8Bxe4cLVP+/ aVeBtDjbxapveiNCO6rcM8WB1zX2PxWuaLlYErj0e6KFGMKR4abH3AiOA2vMTGjIet/g lhWaLkBKRtx0+YwxozpwQjT/o2rLDTtTt9+EMoBOVHAOV6Wrkg3aaRAcESDmBYRxVcU2 qecjV2/c/oTRKvoMZiwo9M6SHswJG+XUGKo8tUBitwiO/gGtp0SN6rBsbek7oGa0+jPs 9M0+/QsgZEyWlmPcM/49DPtYeS56rkFiPsrIjVrTkYdubXxPK8mLrkyVCvYchPDxlIGA CKuA== 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=q+VMcGYGHgO6uhWwLKwbGT5CXIfzntByTh6D567G1UDqSUCWWGwBmrDzSWrJJfW7i6 l0YZ2XxFxph+8SOF7A0md1fOZ2+FNRtjxjGkAmiHBW4ajHDBdLBxhbfous8NVzz4K6SM 1WQpBuC5tpI9sh7ynVZX+bqv5EZHXtxNgCkAYhLWGGgw5ey60y+j2QaIzIfFv2WzrtBS /LYT4NsUCPF71QbEnCTFW7Ouu2bXFbW3bwvPwjDj/EfvJh3yno4i1g+xcZYPOdBcdXu/ P+c6VeJH9eGNnvPiS3ib3XiIe3X4Z206Diq9XoHlT8sQKVG2puF2DD3IYIT5GuP9voun So3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tZ7kT0Vn; 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 kl6-20020a170907994600b006e7fd40f5d8si4744314ejc.486.2022.04.05.17.26.09; Tue, 05 Apr 2022 17:26:36 -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=tZ7kT0Vn; 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 S1390725AbiDENnI (ORCPT + 99 others); Tue, 5 Apr 2022 09:43:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345874AbiDEJXH (ORCPT ); Tue, 5 Apr 2022 05:23:07 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15B95A56E6; Tue, 5 Apr 2022 02:12:23 -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 A0BA3B818F3; Tue, 5 Apr 2022 09:12:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 149C0C385A9; Tue, 5 Apr 2022 09:12:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149940; bh=cMqtRYjZEQdWC8J/EteWdfFdurSZ5k0jH4EvAFujZW0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tZ7kT0VnjkvpBKO0aXn2cHTYPQ0JRmQ5sM4s1S06jAnHnvNgVgMGfgs7cNsb2vKN7 vqorNwGqFowEOgA5QEAuqNEUKDlJeR5mlTcKxBqeyBgb0ocCR8kuiVG35lMh5rwb1u 5xmoGNUnTCiLFMu7u7gufe4SuHckj553nGPbN7Ro= 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.16 0896/1017] scsi: qla2xxx: Fix stuck session of PRLI reject Date: Tue, 5 Apr 2022 09:30:09 +0200 Message-Id: <20220405070420.823540439@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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=-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: 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",