From nobody Mon Sep 29 20:12:06 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0EAD6C00140 for ; Tue, 16 Aug 2022 00:54:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244249AbiHPAyp (ORCPT ); Mon, 15 Aug 2022 20:54:45 -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-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 !=3D FC_NO_LOOP_ID) { if (fcport->flags & FCF_FCP2_DEVICE) - fcport->logout_on_delete =3D 0; + continue; =20 ql_log(ql_log_warn, vha, 0x20f0, "%s %d %8phC post del sess\n",