ab808d2b68
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> |
||
---|---|---|
.. | ||
dev.c | ||
lun.c | ||
Makefile | ||
port.c | ||
scsi_bdev.c | ||
scsi_internal.h | ||
scsi_pr.c | ||
scsi_rpc.c | ||
scsi.c | ||
spdk_scsi.map | ||
task.c |