]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: Fix losing target when it reappears during delete
authorArun Easi <aeasi@marvell.com>
Thu, 16 Jun 2022 05:35:04 +0000 (22:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:18 +0000 (14:24 +0200)
commitd86d482bc99fa82d87049051bff8e7917e6fb92d
tree91c924eaabcddaa8d14b339bf65d1f15ae2cc11f
parentdd76af56c8635c4f18e14b76c7948ad2a284d4eb
scsi: qla2xxx: Fix losing target when it reappears during delete

commit ac376f2a9c75a5cce7fa84db7ba846802d82fe96 upstream.

FC target disappeared during port perturbation tests due to a race that
tramples target state.  Fix the issue by adding state checks before
proceeding.

Link: https://lore.kernel.org/r/20220616053508.27186-8-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_attr.c