]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: Fix losing FCP-2 targets during port perturbation tests
authorArun Easi <aeasi@marvell.com>
Thu, 16 Jun 2022 05:35:03 +0000 (22:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:18 +0000 (14:24 +0200)
commit88534543a9fe1b9dda0951ad1a21e1a69c05d828
treea95dff269b673af19a8023c1eac13ccfd6e9097d
parentd86d482bc99fa82d87049051bff8e7917e6fb92d
scsi: qla2xxx: Fix losing FCP-2 targets during port perturbation tests

commit e7cc14f4f21a74177f5ecfaa0c4ebc637b89d823 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: d5638e660741 ("scsi: qla2xxx: Changes to support FCP2 Target")
Cc: stable@vger.kernel.org
Signed-off-by: Arun Easi <aeasi@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/qla2xxx/qla_gs.c