]> 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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 17 Jun 2022 01:59:53 +0000 (21:59 -0400)
commitac376f2a9c75a5cce7fa84db7ba846802d82fe96
tree0e9df2dfa2d48d45fa2348013458067a53a5f127
parente7cc14f4f21a74177f5ecfaa0c4ebc637b89d823
scsi: qla2xxx: Fix losing target when it reappears during delete

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>
drivers/scsi/qla2xxx/qla_attr.c