+20
−10
Loading
It is possible for one thread to call spdk_bdev_register while another thread calls spdk_bdev_open_ext. spdk_bdev_open_ext will attempt to find the bdev by its name. If it finds a bdev, it is allowed to do anything with it, including opening IO channels. Ensure that spdk_bdev_register adds the mapping name -> bdev only after everything is initialized. Change-Id: I5f7ab391a5f8a494a7637dfc6b0cfe19199ed96a Signed-off-by:Alex Michon <amichon@kalrayinc.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23865 Community-CI: Mellanox Build Bot Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>