numam-spdk/test
Shuhei Matsumoto a22d8a530f lib/nvmf: Add an API spdk_nvmf_subsystem_add_ns_ext() to pass bdev_name
Add an new API spdk_nvmf_subsystem_add_ns_ext() to pass not bdev but
bdev_name 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 by spdk_bdev_open_ext() but the
issue still existed.

Update the corresponding unit tests accordingly.

Then replace the internal of spdk_nvmf_subsystem_add_ns() by
spdk_nvmf_subsystem_add_ns_ext() call.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Ifcaa2121129ef22d5e61c9a8f7c640ff37a64485
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4485
Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
2020-10-14 08:07:06 +00:00
..
app log: simplify SPDK_LOG_REGISTER_COMPONENT 2020-10-14 08:00:35 +00:00
bdev test/bdevio: add a shutdown function 2020-10-12 08:26:07 +00:00
blobfs test/blobfs: Drop .ini config in favor of json 2020-10-12 08:26:20 +00:00
blobstore test/blobfs: Drop .ini config in favor of json 2020-10-12 08:26:20 +00:00
common env: spdk_vtophys buffer argument is now const 2020-10-13 07:48:05 +00:00
compress module/compress: add new parm to RPC for create compress vol 2020-07-27 22:39:29 +00:00
config_converter test/config_converter: Declare $rootdir, $testdir paths 2020-02-20 09:54:15 +00:00
cpp_headers queue_extras: use SPDK_CONTAINEROF 2019-10-07 15:06:01 +00:00
dd test/dd: Lower the number of block size tests 2020-08-20 09:27:21 +00:00
dpdk_memory_utility build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
env lib/env_dpdk: replace printf() and fprintf(stderr,) usage 2020-09-07 09:28:39 +00:00
event bdev: move bdev_rpc library contents 2020-09-25 11:43:42 +00:00
external_code test/external_code: modify some remaining parts for switching to json 2020-10-09 07:19:16 +00:00
ftl test/ftl: point to absolute path to setup.sh 2020-07-06 23:22:59 +00:00
fuzz test/iscsi: remove VPP tests 2020-08-17 08:19:46 +00:00
ioat build: Example applications build to build/example 2020-06-15 15:27:16 +00:00
iscsi_tgt test/iscsi: In ip_migration.sh, use 'ip' to add and remove IP addresses 2020-10-06 09:36:30 +00:00
json_config sock/rpc: Add sock_set_default_impl RPC call 2020-10-05 08:22:53 +00:00
lvol build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
make test: run verbose abidiff on abi failure 2020-10-02 07:13:53 +00:00
nvme test/app_overhead: fix aio make issue 2020-10-07 07:47:41 +00:00
nvmf test/nvmf: Replace [ with [[ test in allocate_nic_ips() 2020-10-08 13:11:29 +00:00
ocf scripts/setup remove flakiness from tests 2020-09-09 07:19:43 +00:00
openstack test/nvmf: Handle multiple arguments in nvmfappstart() 2020-05-13 07:46:04 +00:00
pmem build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
rpc build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
rpc_client lib/event: fix printing non-null-terminated strings 2020-04-06 07:48:37 +00:00
spdkcli lib/iscsi: Add MaxR2TPerConnection to iSCSI options 2020-08-18 07:27:45 +00:00
unit lib/nvmf: Add an API spdk_nvmf_subsystem_add_ns_ext() to pass bdev_name 2020-10-14 08:07:06 +00:00
vhost test/vhost: add option for fio gtod_reduce 2020-07-24 15:41:46 +00:00
vmd build: Example applications build to build/example 2020-06-15 15:27:16 +00:00
Makefile build: add option to disable building unit tests 2020-03-10 09:12:21 +00:00
spdk_cunit.h test: remove leftover spdk_cunit declaration 2018-07-06 22:47:56 +00:00