]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: Fix loss of NVMe namespaces after driver reload test
authorArun Easi <aeasi@marvell.com>
Thu, 10 Mar 2022 09:25:54 +0000 (01:25 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 15 Mar 2022 04:29:13 +0000 (00:29 -0400)
commit7bf9079a3a94e4ad9979a5a2b4b3a456cd0a0d78
tree4034883a5a943fb969caf0914d36cdf07a7b8c4a
parent3eb48bb1392bcb457cb1c96d838a68b97e159b6b
scsi: qla2xxx: Fix loss of NVMe namespaces after driver reload test

Driver registration of localport can race when it happens at the remote
port discovery time. Fix this by calling the registration under a mutex.

Link: https://lore.kernel.org/r/20220310092604.22950-4-njavali@marvell.com
Fixes: 215959ed5159 ("scsi: qla2xxx: Add FC-NVMe F/W initialization and transport registration")
Cc: stable@vger.kernel.org
Reported-by: Marco Patalano <mpatalan@redhat.com>
Tested-by: Marco Patalano <mpatalan@redhat.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
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_nvme.c