+1
−9
+9
−8
+1
−1
Loading
Pass not bdev but bdev_name to scsi_lun_construct() to fix the race condition due to the time gap between spdk_bdev_get_by_name() and spdk_bdev_open(). A pointer to a bdev is valid only while the bdev is opened. spdk_bdev_open() has been replaced recently by spdk_bdev_open_ext(), but the issue still existed. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: Ic462422dbc2501c24907f56a36570fbb54fef65b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4482 Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>