Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2925718rwb; Mon, 15 Aug 2022 14:10:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR7Gala4i5uYe37UeudZswS3BAKIldwdQCCMBs/zDmfVHKhfeMEsuGx9N+NSpef3dmZucnCv X-Received: by 2002:a17:90b:4c51:b0:1f5:b530:af88 with SMTP id np17-20020a17090b4c5100b001f5b530af88mr20450947pjb.76.1660597844987; Mon, 15 Aug 2022 14:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597844; cv=none; d=google.com; s=arc-20160816; b=gSsgBtNQBwx/LryOEnz/Kt9G8hxk88O2KNklbBP0RYF75FYQ3ixSbsoODiRi7aRTws TxZy8K7V40nl2z6ysEyiMmp0XFT6x7ml7FVjfSg434lAbjVx1uVnMjvQ4bGmO354Q34W 4OIurRW53U+anI26UxBrGEgvUbVLRgYE+06aKp7ExgEFbvF9zSA2Qqm/NUMktvo1m+dT tjsILsZLfgwGLS3d7iudRYJwp6EVx+JxE688S7oMQ8RqNTy+G8/ocLhTQDwBvR+MnlTt +6V4xvPV5Ry3212sIRNqTyHcBl6zC2JVzSlZVlsh5iJU1HyXbuCMjxsJ5eVl1fqAC2VF DXNQ== 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=10Nhgtlv5yaXhhyW7q/cfrQPOxMgemox9hOEI10rzIU=; b=vK9nVnmenRNbcBvLx+WpFczjjJb7th9CsTRAYiRDI2/CfUbYnuMbjerAkh7Z/N8IlU tDKncckX3l4mIlAV1b3OfuTz7+D5xoP+Tj7SRiQdsEEhsHzoHZsqX8U/dZHT61nt9YxU sp5WJH9hEsoY4zzFNapMmvc0sv+B0k51hnQVAFu+nUwKZ8p1fZIBoGb/+Ha3zaAlPa20 GlxuH8PTe79gahC/p8IMpP+dLVGOFoIPAkB8DjudorpKvj2Y4G4RiGznD+cIUXL/5PLO 3/csM3m3fXN3DH0FCiFB/9Gn57Bj2KA2LDKxfEx9wiaPsBVpUTS/4p2guO/9IPGG9pX3 S+7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ttzwB+tV; 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 o5-20020a170902d4c500b0016bdd1523a9si12743839plg.247.2022.08.15.14.10.33; Mon, 15 Aug 2022 14:10:44 -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=ttzwB+tV; 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 S1344251AbiHOTrX (ORCPT + 99 others); Mon, 15 Aug 2022 15:47:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344969AbiHOTp5 (ORCPT ); Mon, 15 Aug 2022 15:45:57 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA1836CF57; Mon, 15 Aug 2022 11:48: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 1D665B810A0; Mon, 15 Aug 2022 18:48:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E205C433D6; Mon, 15 Aug 2022 18:48:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660589317; bh=ia/EirAuhmqDledGbC0qAjRWcjTyE94Ok4hT+4Tw2wA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ttzwB+tVphylWqlwELLplfZP9RxibkdH1bICUt9oACOExRVCKP3oq86VO3Kv0ou+f EIax51p/wSoclmLs2Mxbk//61gc+W7zq0wevU+liQ4sNMkI+lUd01NajnSkUrbw+uJ X/GctdatIYFAg9xc5kdYg/O3rdk/jgOIlEchWlBU= 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.15 680/779] scsi: qla2xxx: Fix losing FCP-2 targets during port perturbation tests Date: Mon, 15 Aug 2022 20:05:24 +0200 Message-Id: <20220815180406.429462281@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 @@ -3628,7 +3628,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",