Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp707061pxb; Tue, 5 Apr 2022 19:39:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzI2kUmhTd24p8ql/i+6aMDCG46F8TtkZUHqdwCaud3GkqW3rDYZ2iG42t+o6i/lTdNs3+6 X-Received: by 2002:a17:906:c0d6:b0:6ca:457e:f1b7 with SMTP id bn22-20020a170906c0d600b006ca457ef1b7mr6149215ejb.399.1649212762910; Tue, 05 Apr 2022 19:39:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649212762; cv=none; d=google.com; s=arc-20160816; b=Cg7ADW6dHz4vvEDQtGb+6yR10TmIzNJuXrwisWwzI0dq+KGxTjNt3lP/zY7EELGbCN FfQD6iXMubhlGpTBB75Dbs4NwYZSOC0C8aH0oGuNSrz4JC6FLFL4rGsJu0YN31oG03WA 23L4AeGPez7i4ZC81hGEdf6LfUVLec/zP4JlVaXE2foiVR+LG9EzZDfNFyjlsVSI07Oo v1CQI7Bxr7SCOrtGX3Y0kr9Preo2HqKsnWtRaD+Q7FF031IPkJFBO3yDaSL3pMlySPNL B2aYm9rt2/cxnMApck7dS7+XxrgBL5dz72xLcSEtnOn5BkyDjbxm7oMOC1evmJ2QrLqe VDTw== 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=NyY5ghnAD1W7IL/rMbuICkUL8S6xMqu4SmQrLqO89zU=; b=HKmHeL1ZKiACj+N2NxJOdw0M85jSP8L4ZE1X0rglNNGtupqjU6NUT/+Mtd1gb44wFu OiyAgWjVh6DUVyKaFVdOc9QzoB5ZAoGxDlhsDWHCkRrCOvUvtC5qROV7DZ342AK6lsV3 anLyvI/32thBp75C8Ar54zp5TahFDA9FP4O1gFKY32nOJsWdOnJzAAxlzdQ7CvZYeYMk H8gtIujUG4DZ3rxpUcWjfhn6NPyBIGOF7AUxpDXYEN8k18RwpLZpU5db6aCbNmrxxqsU skiMXOjiIwpRMAnaWClH+CRvoJrlPWEcDnVR805ozLtc9aFbfXozMjFF6sPYtZlwPscJ 6HOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=K5v3PPQ4; 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 l10-20020a170906794a00b006df8067289esi2107764ejo.758.2022.04.05.19.38.58; Tue, 05 Apr 2022 19:39:22 -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=K5v3PPQ4; 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 S241437AbiDEKsv (ORCPT + 99 others); Tue, 5 Apr 2022 06:48:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240531AbiDEIcG (ORCPT ); Tue, 5 Apr 2022 04:32:06 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A524E73060; Tue, 5 Apr 2022 01:24:32 -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 F1DCA60FF7; Tue, 5 Apr 2022 08:24:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BCB8C385A2; Tue, 5 Apr 2022 08:24:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649147071; bh=Vsh+HEtCiPguM+o61XlDzjkagD1hYteDwNcaJuONtvk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K5v3PPQ4SexbWujKjUq85TMR1s7Xqegy7+w2SpYg3sgDhdBJp0oiO4ELsmBg29/uM L3RPkgImyLq47KFsv66BWrLuHD/FlCrRfM8vCvUgtQgw2/ItQS669oT/3Dq3BF1Tah eo67JdO4PKmYrwIdtl6zCzBD+NZAOA/hmwYaA8+s= 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 0990/1126] scsi: qla2xxx: Fix N2N inconsistent PLOGI Date: Tue, 5 Apr 2022 09:28:57 +0200 Message-Id: <20220405070436.553346977@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=-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 c13ce47c64ea8f14e77eecb40d1e7c2ac667f898 upstream. For N2N topology, ELS Passthrough is used to send PLOGI. On failure of ELS pass through PLOGI, driver flipped over to using LLIOCB PLOGI for N2N. This is not consistent. Delete the session to restart the connection where ELS pass through PLOGI would be used consistently. Link: https://lore.kernel.org/r/20220310092604.22950-7-njavali@marvell.com Fixes: c76ae845ea83 ("scsi: qla2xxx: Add error handling for PLOGI ELS passthrough") 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_iocb.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) --- a/drivers/scsi/qla2xxx/qla_iocb.c +++ b/drivers/scsi/qla2xxx/qla_iocb.c @@ -2943,6 +2943,7 @@ static void qla2x00_els_dcmd2_sp_done(sr set_bit(ISP_ABORT_NEEDED, &vha->dpc_flags); qla2xxx_wake_dpc(vha); + break; } fallthrough; default: @@ -2952,9 +2953,7 @@ static void qla2x00_els_dcmd2_sp_done(sr fw_status[0], fw_status[1], fw_status[2]); fcport->flags &= ~FCF_ASYNC_SENT; - qla2x00_set_fcport_disc_state(fcport, - DSC_LOGIN_FAILED); - set_bit(RELOGIN_NEEDED, &vha->dpc_flags); + qlt_schedule_sess_for_deletion(fcport); break; } break; @@ -2966,8 +2965,7 @@ static void qla2x00_els_dcmd2_sp_done(sr fw_status[0], fw_status[1], fw_status[2]); sp->fcport->flags &= ~FCF_ASYNC_SENT; - qla2x00_set_fcport_disc_state(fcport, DSC_LOGIN_FAILED); - set_bit(RELOGIN_NEEDED, &vha->dpc_flags); + qlt_schedule_sess_for_deletion(fcport); break; }