Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3027168rwb; Mon, 15 Aug 2022 16:25:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR76wd4KlwylC0aR1EGMRBnsTpBS4q0EYT2gXqCqeGppPbhCbV/cKap77G26dRjEmCZtg1kQ X-Received: by 2002:a17:903:22d0:b0:16f:7754:1e99 with SMTP id y16-20020a17090322d000b0016f77541e99mr18609079plg.150.1660605927518; Mon, 15 Aug 2022 16:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605927; cv=none; d=google.com; s=arc-20160816; b=ygZ09WcpfIxCS5ceI4rCV7oh/oYlqyOBZME3QnjkYQ1MSNq9p5aLYivD6TAtPJNnew /V0HIEoPuw6wf6xtMGWh6Ot7IG9E/k7wS4Ickr5RBM+J6EwNy16uZtKNKusNNw9hDPsd 9MtGx4lEv+wT6q3UZuQk1hI4KlwKFm8QJUhqM116GZziL+rtQ/nugBUj/koQX6p2garK YIotifCsl+NDHeBjkW7N+CDl/q/6+eOMJkj7fiNg5WREicNCX7r4t31Jyz25dq+MALNF eEOxpKukdAiVpkC+o093zJ+blCrnL64Mvndzah7wHrfBwiMudpD7Zng5V1pKd3vSxWVm LvWQ== 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=b1Dxwzi20lLzH/JJYeUFBxpWtNe3IrSadoTg9xVASo9oMklWsbQNBE+USxD6pEBHg/ Q8wKo4RogiNYFCwU7+WgMeMHS48SOrcO3VBzHoJpKqd/BMzmr33jWlqbJBlJVrlWgOcF c1RtF2s7jt03yyleMz4Ado+/tuhft9V6wzcJ5OqGlEB+GEGpJf7qjKbGmEgqNrMUNP4q p5mzturQwxixu/va4vTi/29UWGrTPYuw6bHvtoraB3RMxp7QNqxGVNhIko0ODT+q6Ul1 6n6T4URGXG7bopv1bPUMhr/nyvjPZTB51XuvhRY/s9GmlkP1ff/ruUBlaN/HcfIC5RRM 8Q/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2KOAbyXO; 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 y23-20020a170902b49700b0016c4fc2de44si6905544plr.456.2022.08.15.16.25.16; Mon, 15 Aug 2022 16:25:27 -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=2KOAbyXO; 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 S1344526AbiHOXKK (ORCPT + 99 others); Mon, 15 Aug 2022 19:10:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353264AbiHOXHf (ORCPT ); Mon, 15 Aug 2022 19:07:35 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D6781436CE; Mon, 15 Aug 2022 12:59:39 -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 DB8BDB81154; Mon, 15 Aug 2022 19:59:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4BE0BC43142; Mon, 15 Aug 2022 19:59:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593576; bh=XSZt3y04SiP8tLE10pIGsc79AdnnvDgeIIf2BR6p02M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2KOAbyXOz00bCj/jmzbcrXNIn3CcSTcCu+uE1NzTN/zUuC/i/tibGcXG30bl8KYYu NpjBC6prEU272hToAMq9MAarmdzM35ydUUiKbE6l1XCam8DT2/wGN0ttMQQDPL31IG 3UCgwnSLxeoZgemVK99hDIN3vNXdczuz9RuCoftM= 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.18 0970/1095] scsi: qla2xxx: Fix losing FCP-2 targets during port perturbation tests Date: Mon, 15 Aug 2022 20:06:09 +0200 Message-Id: <20220815180509.193243814@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: 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",