]> git.ipfire.org Git - thirdparty/kernel/stable.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:42:18 +0000 (14:42 +0200)
commit7bd568ea95e8a7f471d9a0518c17c3d859f13bb8
treeeea5fbc6dffc5867bbb547b1abef47b2b367fbc4
parent09460ce597ca9e7f94b87c151e340c22be8d2b9f
scsi: qla2xxx: Fix losing target when it reappears during delete

commit 118b0c863c8f5629cc5271fc24d72d926e0715d9 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: 44c57f205876 ("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