scsi: mpi3mr: Use ida to manage mrioc ID
authorGuixin Liu <kanie@linux.alibaba.com>
Fri, 29 Dec 2023 04:03:31 +0000 (12:03 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Jan 2024 02:45:59 +0000 (21:45 -0500)
commit29b75184f721b16c51ef6e67eec0e40ed88381c7
tree3fca9e381a9f6c244579dd1c12d2c69dc299bcd9
parent165470fb260020861bea61a18f3e3a543a20c804
scsi: mpi3mr: Use ida to manage mrioc ID

To ensure that the same ID is not obtained during concurrent execution of
the probe, an ida is used to manage the mrioc's ID.

Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>
Link: https://lore.kernel.org/r/20231229040331.52518-1-kanie@linux.alibaba.com
Reviewed-by: Lee Duncan <lduncan@suse.com>
Reviewed-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_os.c