Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3095065rwb; Mon, 15 Aug 2022 18:00:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR5GP06RJ5Z2X5DuVYQzn1bUFnXdNjlXIb11d7Ul03J6D1GbEgFvbKo8ndVOGbWNT6IuMjPl X-Received: by 2002:a17:906:eeca:b0:730:6880:c398 with SMTP id wu10-20020a170906eeca00b007306880c398mr12135520ejb.706.1660611639124; Mon, 15 Aug 2022 18:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611639; cv=none; d=google.com; s=arc-20160816; b=R4xIIdtI6+YBzCiOycUBz/XTAjDpGIdbu0xHMGIKYTkopYgTxLRAJ8/Lhuw6fN7KFN zh3LlxNP2ITcDeHi7u7heoYE1rTCRD8+aySvisnkLb1iYekL1xKRgL1qspIm3PnvrwOK tbr/e26OjHTgGPN1pT2fqq3OZfZXHnij1I9A7DKvMOWTG7t6yeCoYYadqFv4zResaUYx dAVYIA8TES7NERw2kEF17fZj+H3djgODEw1F2mMNrtZS2KwrmCGp/fdpl9M3oAflrl56 Kz9uVZzDD5mBQW/LEOpiXKZWfxJM1ii59mRBtDaQs/FX/pcUSI6p6Qwxf9p873SFaCXY gXWQ== 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=zlE75RuAyxM9DIvgrA6ITktCgcoPQhjoVPhs1ZYho6Y=; b=jrB6jbUdL/aw1QpIuFX1/VEMcNqG9FOyZOwy2P0i8Tq2w0vQoTBYAfguOdjxkCmuE2 90pTyjpZF95raSAEJ5DNlbK6G5VP9o/FMJS14RrFKID62Lo7fuBX58YKJUa9etF6g+++ leBCM8hGfMTuoumZWmoi1TD0auPyBzJk6aG1B8vkcFmm6ILmr+z9SuTJqZRpA8EtGvX+ CmW2M7A4XEqTb6dJvrdDriJ61Kdbd4bR3vQEtnmejrCm1oBBW1kj59RAeGELR9PUYNDp NEKfWtMJFr8latLH6u7GPBZurZj9e/orzKF3lceL5wJWqP1IV7+w/dVDngFmOzb9hy9Q aYqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="qUYio/RS"; 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 bu18-20020a170906a15200b007307fd1b9bbsi7687254ejb.589.2022.08.15.18.00.08; Mon, 15 Aug 2022 18:00:39 -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="qUYio/RS"; 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 S232902AbiHPAym (ORCPT + 99 others); Mon, 15 Aug 2022 20:54:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243215AbiHPArH (ORCPT ); Mon, 15 Aug 2022 20:47:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F286197BA1; Mon, 15 Aug 2022 13:45:49 -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 C742E61255; Mon, 15 Aug 2022 20:45:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B720BC433D6; Mon, 15 Aug 2022 20:45:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660596348; bh=XSZt3y04SiP8tLE10pIGsc79AdnnvDgeIIf2BR6p02M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qUYio/RSP9l/6Y/nuG2jI98XnwcT6RGVyDh3xybNftbYpLEoHCiuFuIawnNB/HZrv YJHkMbKGYkSzwoD++yqiaIbuMpgCcI/rT65DqhKLEhSBTxD7a6fqAT32W8eq/fbMHT JQUyL6JaKGYKYyFQ2Jds/lhPKaLvJJwV5IKdkf7o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arun Easi , Nilesh Javali , "Martin K. Petersen" Subject: [PATCH 5.19 1044/1157] scsi: qla2xxx: Fix losing FCP-2 targets during port perturbation tests Date: Mon, 15 Aug 2022 20:06:40 +0200 Message-Id: <20220815180521.784380847@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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: Arun Easi commit 58d1c124cd79ea686b512043c5bd515590b2ed95 upstream. When a mix of FCP-2 (tape) and non-FCP-2 targets are present, FCP-2 target state was incorrectly transitioned when both of the targets were gone. Fix this by ignoring state transition for FCP-2 targets. Link: https://lore.kernel.org/r/20220616053508.27186-7-njavali@marvell.com Fixes: 44c57f205876 ("scsi: qla2xxx: Changes to support FCP2 Target") Cc: stable@vger.kernel.org Signed-off-by: Arun Easi Signed-off-by: Nilesh Javali Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/qla2xxx/qla_gs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/scsi/qla2xxx/qla_gs.c +++ b/drivers/scsi/qla2xxx/qla_gs.c @@ -3629,7 +3629,7 @@ login_logout: do_delete) { if (fcport->loop_id != FC_NO_LOOP_ID) { if (fcport->flags & FCF_FCP2_DEVICE) - fcport->logout_on_delete = 0; + continue; ql_log(ql_log_warn, vha, 0x20f0, "%s %d %8phC post del sess\n",